Skip to content
Snippets Groups Projects
Commit de58f153 authored by Timo Koch's avatar Timo Koch Committed by Dennis Gläser
Browse files

[problem] Deprecate gravity/gravityAtPos

parent 7f255265
No related branches found
No related tags found
1 merge request!1573Feature/move gravity to spatialparams
......@@ -24,6 +24,7 @@
#ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
#define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
#include <dune/common/deprecated.hh>
#include <dumux/common/fvproblem.hh>
namespace Dumux {
......@@ -123,6 +124,7 @@ public:
* This is discretization independent interface. By default it
* just calls gravity().
*/
DUNE_DEPRECATED_MSG("Use the gravity function of the spatialParams (i.e. problem.spatialParams().gravity(pos)). Will be removed after 3.1!")
const GravityVector &gravityAtPos(const GlobalPosition &pos) const
{ return this->asImp_().gravity(); }
......@@ -135,6 +137,7 @@ public:
* property is true, \f$\boldsymbol{g} = ( 0,\dots,\ -9.81)^T \f$ holds,
* else \f$\boldsymbol{g} = ( 0,\dots, 0)^T \f$.
*/
DUNE_DEPRECATED_MSG("Use the gravity function of the spatialParams (i.e. problem.spatialParams().gravity(pos)). Will be removed after 3.1!")
const GravityVector &gravity() const
{ return gravity_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment