From 991799a6212babbfeb714bdbd46b6f2a2665d885 Mon Sep 17 00:00:00 2001 From: Ivan Buntic Date: Fri, 17 Sep 2021 14:30:40 +0200 Subject: [PATCH] [Tag] Updated effectivestresslaw. --- dumux/flux/box/effectivestresslaw.hh | 9 ++++++--- dumux/flux/effectivestresslaw.hh | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dumux/flux/box/effectivestresslaw.hh b/dumux/flux/box/effectivestresslaw.hh index 629ef693e2..3d27b0c193 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 4ec9a0b6fb..8ebee8d057 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 -- GitLab