From 463b5abd700ea4019e5667b85aec455b39a28d6c Mon Sep 17 00:00:00 2001
From: Ivan Buntic <st116086@stud.uni-stuttgart.de>
Date: Fri, 17 Sep 2021 14:29:49 +0200
Subject: [PATCH] [discmethod] Use discretization tags for Hookeslaw

---
 dumux/flux/box/hookeslaw.hh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dumux/flux/box/hookeslaw.hh b/dumux/flux/box/hookeslaw.hh
index e7dfe83832..f750acd26f 100644
--- a/dumux/flux/box/hookeslaw.hh
+++ b/dumux/flux/box/hookeslaw.hh
@@ -40,7 +40,7 @@ namespace Dumux {
  * \tparam GridGeometry the grid geometry
  */
 template<class ScalarType, class GridGeometry>
-class HookesLaw<ScalarType, GridGeometry, DiscretizationMethod::box>
+class HookesLaw<ScalarType, GridGeometry, typename GridGeometry::DiscretizationMethod>
 {
     using FVElementGeometry = typename GridGeometry::LocalView;
     using SubControlVolumeFace = typename GridGeometry::SubControlVolumeFace;
@@ -61,7 +61,10 @@ public:
     //! export the type used for force vectors
     using ForceVector = typename StressTensor::row_type;
     //! state the discretization method this implementation belongs to
-    static constexpr DiscretizationMethod discMethod = DiscretizationMethod::box;
+
+    using DiscretizationMethod = DiscretizationMethods::Box;
+    // state the discretization method this implementation belongs to
+    static constexpr DiscretizationMethod discMethod{};
 
     /*!
      * \brief Returns the force (in Newton) acting on a sub-control volume face.
-- 
GitLab