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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment