diff --git a/dumux/flux/box/hookeslaw.hh b/dumux/flux/box/hookeslaw.hh
index e7dfe838321cd666573bddac73aaeadae9b5f2e7..f750acd26f406ce194ac6f516d49a8773decaeea 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.