diff --git a/dumux/flux/box/effectivestresslaw.hh b/dumux/flux/box/effectivestresslaw.hh index 629ef693e2eb65c3098a8d1f218c3c1ee1f68621..3d27b0c19378828b5d47999fa5a848c7705d61b8 100644 --- a/dumux/flux/box/effectivestresslaw.hh +++ b/dumux/flux/box/effectivestresslaw.hh @@ -39,7 +39,7 @@ namespace Dumux { * \tparam GridGeometry the finite volume grid geometry */ template -class EffectiveStressLaw +class EffectiveStressLaw { using FVElementGeometry = typename GridGeometry::LocalView; using SubControlVolumeFace = typename FVElementGeometry::SubControlVolumeFace; @@ -51,7 +51,7 @@ class EffectiveStressLaw static constexpr int dim = GridView::dimension; static constexpr int dimWorld = GridView::dimensionworld; static_assert(dim == dimWorld, "EffectiveStressLaw not implemented for network/surface grids"); - static_assert(StressType::discMethod == DiscretizationMethod::box, "The provided stress type must be specialized for the box scheme"); + static_assert(StressType::discMethod == DiscretizationMethods::box, "The provided stress type must be specialized for the box scheme"); public: //! export the type used for scalar values @@ -61,7 +61,10 @@ public: //! export the type used for force vectors using ForceVector = typename StressType::ForceVector; //! 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 Computes the force (in Newton) acting on a sub-control volume face. diff --git a/dumux/flux/effectivestresslaw.hh b/dumux/flux/effectivestresslaw.hh index 4ec9a0b6fbcfe7422f827b967502cf058ffba066..8ebee8d057d66ea4d9828435224ca0df1679a96f 100644 --- a/dumux/flux/effectivestresslaw.hh +++ b/dumux/flux/effectivestresslaw.hh @@ -35,7 +35,7 @@ namespace Dumux { * \note Specializations are provided for the different discretization methods. * These specializations are found in the headers included below. */ -template +template class EffectiveStressLaw; } // end namespace Dumux