Skip to content
Snippets Groups Projects
Commit 8da46c5f authored by Ivan Buntic's avatar Ivan Buntic Committed by Timo Koch
Browse files

[disc][geomechanics] Use discretization tag instead of enum as template argument.

parent d4335281
No related branches found
No related tags found
1 merge request!2844Feature/discretization tags introduction
...@@ -37,18 +37,18 @@ namespace Dumux { ...@@ -37,18 +37,18 @@ namespace Dumux {
* \brief The stress variables cache classes for models involving geomechanics. * \brief The stress variables cache classes for models involving geomechanics.
* Store data required for stress calculation. * 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; class StressVariablesCache;
//! We only store discretization-related quantities for the box method. //! We only store discretization-related quantities for the box method.
template< class Scalar, class GridGeometry > template< class Scalar, class GridGeometry >
class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::box> class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::Box>
: public BoxFluxVariablesCache< Scalar, GridGeometry > : public BoxFluxVariablesCache< Scalar, GridGeometry >
{}; {};
// specialization for the cell centered tpfa method // specialization for the cell centered tpfa method
template< class Scalar, class GridGeometry > template< class Scalar, class GridGeometry >
class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::cctpfa> class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCTpfa>
: public FluxVariablesCaching::_EmptyCache : public FluxVariablesCaching::_EmptyCache
{ {
public: public:
...@@ -76,8 +76,8 @@ public: ...@@ -76,8 +76,8 @@ public:
// specialization for the cell centered mpfa method // specialization for the cell centered mpfa method
template< class Scalar, class GridGeometry > template< class Scalar, class GridGeometry >
class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::ccmpfa> class StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCMpfa>
: public StressVariablesCache<Scalar, GridGeometry, DiscretizationMethod::cctpfa> : public StressVariablesCache<Scalar, GridGeometry, DiscretizationMethods::CCTpfa>
{}; {};
} // end namespace Dumux } // end namespace Dumux
......
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