From de58f15393c135e3671a81a94c0bfa525898bf6f Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Wed, 1 May 2019 22:13:02 +0200
Subject: [PATCH] [problem] Deprecate gravity/gravityAtPos

---
 dumux/porousmediumflow/problem.hh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dumux/porousmediumflow/problem.hh b/dumux/porousmediumflow/problem.hh
index 2915e5eee3..b7e42f577b 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_; }
 
-- 
GitLab