diff --git a/dumux/porousmediumflow/problem.hh b/dumux/porousmediumflow/problem.hh index 2915e5eee3ddf65909d9314721219065c1eb5c37..b7e42f577bc792bb42cd2c7c872c3b08f363da06 100644 --- a/dumux/porousmediumflow/problem.hh +++ b/dumux/porousmediumflow/problem.hh @@ -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_; }