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
1 merge request!1573Feature/move gravity to spatialparams
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH #ifndef DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
#define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH #define DUMUX_POROUS_MEDIUM_FLOW_PROBLEM_HH
#include <dune/common/deprecated.hh>
#include <dumux/common/fvproblem.hh> #include <dumux/common/fvproblem.hh>
namespace Dumux { namespace Dumux {
...@@ -123,6 +124,7 @@ public: ...@@ -123,6 +124,7 @@ public:
* This is discretization independent interface. By default it * This is discretization independent interface. By default it
* just calls gravity(). * 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 const GravityVector &gravityAtPos(const GlobalPosition &pos) const
{ return this->asImp_().gravity(); } { return this->asImp_().gravity(); }
...@@ -135,6 +137,7 @@ public: ...@@ -135,6 +137,7 @@ public:
* property is true, \f$\boldsymbol{g} = ( 0,\dots,\ -9.81)^T \f$ holds, * property is true, \f$\boldsymbol{g} = ( 0,\dots,\ -9.81)^T \f$ holds,
* else \f$\boldsymbol{g} = ( 0,\dots, 0)^T \f$. * 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 const GravityVector &gravity() const
{ return gravity_; } { 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