From 8da46c5f3b960111b705e3cb49ffe2ff523a4d79 Mon Sep 17 00:00:00 2001
From: Ivan Buntic <st116086@stud.uni-stuttgart.de>
Date: Fri, 17 Sep 2021 15:00:29 +0200
Subject: [PATCH] [disc][geomechanics] Use discretization tag instead of enum
 as template argument.

---
 dumux/geomechanics/stressvariablescache.hh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dumux/geomechanics/stressvariablescache.hh b/dumux/geomechanics/stressvariablescache.hh
index f32d48abe6..0ad92c6e01 100644
--- a/dumux/geomechanics/stressvariablescache.hh
+++ b/dumux/geomechanics/stressvariablescache.hh
@@ -37,18 +37,18 @@ namespace Dumux {
  * \brief The stress variables cache classes for models involving geomechanics.
  *        Store data required for stress calculation.
  */
-template< class Scalar, class GridGeometry, DiscretizationMethod dm = GridGeometry::discMethod >
+template< class Scalar, class GridGeometry, class DiscretizationMethod = typename GridGeometry::DiscretizationMethod >
 class StressVariablesCache;
 
 //! We only store discretization-related quantities for the box method.
 template< class Scalar, class GridGeometry >
-class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::box>
+class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::Box>
 : public BoxFluxVariablesCache< Scalar, GridGeometry >
 {};
 
 // specialization for the cell centered tpfa method
 template< class Scalar, class GridGeometry >
-class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::cctpfa>
+class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCTpfa>
 : public FluxVariablesCaching::_EmptyCache
 {
 public:
@@ -76,8 +76,8 @@ public:
 
 // specialization for the cell centered mpfa method
 template< class Scalar, class GridGeometry >
-class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::ccmpfa>
-: public StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::cctpfa>
+class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCMpfa>
+: public StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCTpfa>
 {};
 
 } // end namespace Dumux
-- 
GitLab