diff --git a/dumux/flux/box/darcyslaw.hh b/dumux/flux/box/darcyslaw.hh index 0c011f5d1d8454bd831e281a3eb2a0bb4b197a2f..a1326195e31839e3725ce92242ced0086b24ad44 100644 --- a/dumux/flux/box/darcyslaw.hh +++ b/dumux/flux/box/darcyslaw.hh @@ -37,7 +37,7 @@ namespace Dumux { // forward declaration -template +template class DarcysLawImplementation; // forward declaration @@ -49,7 +49,7 @@ class BoxDarcysLaw; * \brief Specialization of Darcy's Law for the box method. */ template -class DarcysLawImplementation +class DarcysLawImplementation : public BoxDarcysLaw, GetPropType> { }; diff --git a/dumux/flux/box/fickslaw.hh b/dumux/flux/box/fickslaw.hh index 61b7a17b268fd9ee2d71c8006d714a8d0452eb89..0349e2549cab98b22f64b3412b803f72fc6b5f04 100644 --- a/dumux/flux/box/fickslaw.hh +++ b/dumux/flux/box/fickslaw.hh @@ -39,7 +39,7 @@ namespace Dumux { // forward declaration -template +template class FicksLawImplementation; /*! @@ -47,7 +47,7 @@ class FicksLawImplementation; * \brief Specialization of Fick's Law for the box method. */ template -class FicksLawImplementation +class FicksLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; diff --git a/dumux/flux/box/forchheimerslaw.hh b/dumux/flux/box/forchheimerslaw.hh index eee7bb7b327835ff76dc7f782ecc2cb657050b40..0ce29b5f0e92c4d60659a4668d6c9e27cb699c0a 100644 --- a/dumux/flux/box/forchheimerslaw.hh +++ b/dumux/flux/box/forchheimerslaw.hh @@ -39,7 +39,7 @@ namespace Dumux { // forward declarations -template +template class ForchheimersLawImplementation; /*! @@ -59,7 +59,7 @@ class BoxForchheimersLaw; * \brief Forchheimer's law for box scheme */ template -class ForchheimersLawImplementation +class ForchheimersLawImplementation : public BoxForchheimersLaw, GetPropType, ForchheimerVelocity> @@ -88,8 +88,9 @@ public: //! state the scalar type of the law using Scalar = ScalarType; + using DiscretizationMethod = DiscretizationMethods::Box; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::box; + static constexpr DiscretizationMethod discMethod{}; /*! \brief Compute the advective flux of a phase across * the given sub-control volume face using the Forchheimer equation. diff --git a/dumux/flux/box/fourierslaw.hh b/dumux/flux/box/fourierslaw.hh index 988f87024ba23808b4cc5e06c73b294f4845006e..6a825e69464a0a4ec4a5fb42a94c06651202bab1 100644 --- a/dumux/flux/box/fourierslaw.hh +++ b/dumux/flux/box/fourierslaw.hh @@ -33,7 +33,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawImplementation; /*! @@ -41,7 +41,7 @@ class FouriersLawImplementation; * \brief Specialization of Fourier's Law for the box method. */ template -class FouriersLawImplementation +class FouriersLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; diff --git a/dumux/flux/box/fourierslawnonequilibrium.hh b/dumux/flux/box/fourierslawnonequilibrium.hh index 40bf51f39aef1038576543180a6a6e864454e53f..22ea175d80443dd893be1e4722cb37f87ba2f2db 100644 --- a/dumux/flux/box/fourierslawnonequilibrium.hh +++ b/dumux/flux/box/fourierslawnonequilibrium.hh @@ -36,7 +36,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawNonEquilibriumImplementation; /*! @@ -44,7 +44,7 @@ class FouriersLawNonEquilibriumImplementation; * \brief Specialization of Fourier's Law for the box method for thermal nonequilibrium models. */ template -class FouriersLawNonEquilibriumImplementation +class FouriersLawNonEquilibriumImplementation { using Scalar = GetPropType; using Problem = GetPropType; diff --git a/dumux/flux/box/maxwellstefanslaw.hh b/dumux/flux/box/maxwellstefanslaw.hh index 76b2b5b583eec0b405a467fb924ffbfd5d32cc30..fa2a845e9a7109e87200e7986ef7230c177cba63 100644 --- a/dumux/flux/box/maxwellstefanslaw.hh +++ b/dumux/flux/box/maxwellstefanslaw.hh @@ -40,7 +40,7 @@ namespace Dumux { // forward declaration -template +template class MaxwellStefansLawImplementation; /*! @@ -48,7 +48,7 @@ class MaxwellStefansLawImplementation; * \brief Specialization of Maxwell Stefan's Law for the Box method. */ template -class MaxwellStefansLawImplementation +class MaxwellStefansLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; diff --git a/dumux/flux/ccmpfa/darcyslaw.hh b/dumux/flux/ccmpfa/darcyslaw.hh index 97a5a3a2d87afbd2fa80c96fa26652c896941e55..9627f8e7ac44b34bd55507ab1b5198c903bfadef 100644 --- a/dumux/flux/ccmpfa/darcyslaw.hh +++ b/dumux/flux/ccmpfa/darcyslaw.hh @@ -35,7 +35,7 @@ namespace Dumux { //! forward declaration of the method-specific implementation -template +template class DarcysLawImplementation; /*! @@ -44,7 +44,7 @@ class DarcysLawImplementation; * with multi-point flux approximation. */ template -class DarcysLawImplementation +class DarcysLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; @@ -151,8 +151,9 @@ class DarcysLawImplementation }; public: + using DiscretizationMethod = DiscretizationMethods::CCMpfa; // state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::ccmpfa; + static constexpr DiscretizationMethod discMethod{}; // export the type for the corresponding cache using Cache = MpfaDarcysLawCache; diff --git a/dumux/flux/ccmpfa/fickslaw.hh b/dumux/flux/ccmpfa/fickslaw.hh index 0e13b4eebcb836c108ce9aecf0b828efc94bb5e2..071a9b2e230db1a355d1791c9020477b4d792887 100644 --- a/dumux/flux/ccmpfa/fickslaw.hh +++ b/dumux/flux/ccmpfa/fickslaw.hh @@ -34,7 +34,7 @@ namespace Dumux { //! forward declaration of the method-specific implemetation -template +template class FicksLawImplementation; /*! @@ -42,7 +42,7 @@ class FicksLawImplementation; * \brief Fick's law for cell-centered finite volume schemes with multi-point flux approximation */ template -class FicksLawImplementation +class FicksLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; @@ -162,8 +162,9 @@ class FicksLawImplementation +template class FouriersLawImplementation; /*! @@ -41,7 +41,7 @@ class FouriersLawImplementation; * \brief Fourier's law for cell-centered finite volume schemes with two-point flux approximation */ template -class FouriersLawImplementation +class FouriersLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; @@ -148,8 +148,9 @@ class FouriersLawImplementation }; public: + using DiscretizationMethod = DiscretizationMethods::CCMpfa; // state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::ccmpfa; + static constexpr DiscretizationMethod discMethod{}; // state the type for the corresponding cache and its filler using Cache = MpfaFouriersLawCache; diff --git a/dumux/flux/cctpfa/darcyslaw.hh b/dumux/flux/cctpfa/darcyslaw.hh index 98e6bc3f7a9c74b6ed64ffceace972c4ce4d2dc1..fa9b7eb164d3e07f112da1952d70c41352ff40bd 100644 --- a/dumux/flux/cctpfa/darcyslaw.hh +++ b/dumux/flux/cctpfa/darcyslaw.hh @@ -35,7 +35,7 @@ namespace Dumux { // forward declarations -template +template class DarcysLawImplementation; /*! @@ -55,7 +55,7 @@ class CCTpfaDarcysLaw; * \note Darcy's law is specialized for network and surface grids (i.e. if grid dim < dimWorld) */ template -class DarcysLawImplementation +class DarcysLawImplementation : public CCTpfaDarcysLaw, GetPropType, (GetPropType::GridView::dimension < GetPropType::GridView::dimensionworld)> @@ -145,8 +145,9 @@ class CCTpfaDarcysLaw //! state the scalar type of the law using Scalar = ScalarType; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; //! state the type for the corresponding cache using Cache = TpfaDarcysLawCache; @@ -309,8 +310,9 @@ public: //! state the scalar type of the law using Scalar = ScalarType; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; //! state the type for the corresponding cache using Cache = TpfaDarcysLawCache; diff --git a/dumux/flux/cctpfa/fickslaw.hh b/dumux/flux/cctpfa/fickslaw.hh index 29c1aa8ea5641f7dd2b87f67145a32fd81616952..7876e600e10a2c092cf7cba2eb4f0f0024d1aa86 100644 --- a/dumux/flux/cctpfa/fickslaw.hh +++ b/dumux/flux/cctpfa/fickslaw.hh @@ -39,7 +39,7 @@ namespace Dumux { // forward declaration -template +template class FicksLawImplementation; /*! @@ -47,9 +47,9 @@ class FicksLawImplementation; * \brief Fick's law for cell-centered finite volume schemes with two-point flux approximation */ template -class FicksLawImplementation +class FicksLawImplementation { - using Implementation = FicksLawImplementation; + using Implementation = FicksLawImplementation; using Scalar = GetPropType; using Problem = GetPropType; using GridGeometry = GetPropType; @@ -117,8 +117,10 @@ class FicksLawImplementation +template class ForchheimersLawImplementation; /*! @@ -60,7 +60,7 @@ class CCTpfaForchheimersLaw; * \note Forchheimer's law is specialized for network and surface grids (i.e. if grid dim < dimWorld) */ template -class ForchheimersLawImplementation +class ForchheimersLawImplementation : public CCTpfaForchheimersLaw, GetPropType, ForchheimerVelocity, @@ -157,8 +157,9 @@ class CCTpfaForchheimersLaw; diff --git a/dumux/flux/cctpfa/fourierslaw.hh b/dumux/flux/cctpfa/fourierslaw.hh index 90fa112ac94a112037a00600cd9c365f7957a89b..ac3b95b99cd5c2b2440d963fe3bbf0ab1b8d9889 100644 --- a/dumux/flux/cctpfa/fourierslaw.hh +++ b/dumux/flux/cctpfa/fourierslaw.hh @@ -34,7 +34,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawImplementation; /*! @@ -42,9 +42,9 @@ class FouriersLawImplementation; * \brief Fourier's law for cell-centered finite volume schemes with two-point flux approximation */ template -class FouriersLawImplementation +class FouriersLawImplementation { - using Implementation = FouriersLawImplementation; + using Implementation = FouriersLawImplementation; using Scalar = GetPropType; using Problem = GetPropType; using GridGeometry = GetPropType; @@ -103,8 +103,9 @@ class FouriersLawImplementation }; public: + using DiscretizationMethod = DiscretizationMethods::CCTpfa; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; //! export the type for the corresponding cache using Cache = TpfaFouriersLawCache; diff --git a/dumux/flux/cctpfa/fourierslawnonequilibrium.hh b/dumux/flux/cctpfa/fourierslawnonequilibrium.hh index cf0dc419c7ecfe3fc6398a84d92e936ee26e4c1f..a2ddb1e83d8db26a494b14825936567240d26660 100644 --- a/dumux/flux/cctpfa/fourierslawnonequilibrium.hh +++ b/dumux/flux/cctpfa/fourierslawnonequilibrium.hh @@ -33,7 +33,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawNonEquilibriumImplementation; /*! @@ -41,9 +41,9 @@ class FouriersLawNonEquilibriumImplementation; * \brief Fourier's law for cell-centered finite volume schemes with two-point flux approximation */ template -class FouriersLawNonEquilibriumImplementation +class FouriersLawNonEquilibriumImplementation { - using Implementation = FouriersLawNonEquilibriumImplementation; + using Implementation = FouriersLawNonEquilibriumImplementation; using Scalar = GetPropType; using Problem = GetPropType; using GridGeometry = GetPropType; @@ -66,8 +66,9 @@ class FouriersLawNonEquilibriumImplementation +template class MaxwellStefansLawImplementation; /*! @@ -48,7 +48,7 @@ class MaxwellStefansLawImplementation; * \brief Specialization of Maxwell Stefan's Law for the CCTpfa method. */ template -class MaxwellStefansLawImplementation +class MaxwellStefansLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; @@ -78,8 +78,10 @@ class MaxwellStefansLawImplementation; public: + using DiscretizationMethod = DiscretizationMethods::CCTpfa; // state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; + //return the reference system static constexpr ReferenceSystemFormulation referenceSystemFormulation() { return referenceSystem; } diff --git a/dumux/flux/darcyslaw.hh b/dumux/flux/darcyslaw.hh index de930e5604669af28a7ebd18585a830c8c20192b..a3ae40f278acb9235479633d5bafcca818c5aa7c 100644 --- a/dumux/flux/darcyslaw.hh +++ b/dumux/flux/darcyslaw.hh @@ -33,7 +33,7 @@ namespace Dumux { // forward declaration -template +template class DarcysLawImplementation {}; @@ -44,7 +44,7 @@ class DarcysLawImplementation * These specializations are found in the headers included below. */ template -using DarcysLaw = DarcysLawImplementation::discMethod>; +using DarcysLaw = DarcysLawImplementation::DiscretizationMethod>; } // end namespace Dumux diff --git a/dumux/flux/fickslaw.hh b/dumux/flux/fickslaw.hh index b2bb6f09719a3cbfcb42a77c6385351c396641d3..f7a195b10053a770dfbcd43913ce7f4b227e9735 100644 --- a/dumux/flux/fickslaw.hh +++ b/dumux/flux/fickslaw.hh @@ -33,7 +33,7 @@ namespace Dumux { // forward declaration -template +template class FicksLawImplementation; /*! @@ -41,7 +41,7 @@ class FicksLawImplementation; * \brief Evaluates the diffusive mass flux according to Fick's law */ template -using FicksLaw = FicksLawImplementation::discMethod, referenceSystem>; +using FicksLaw = FicksLawImplementation::DiscretizationMethod, referenceSystem>; } // end namespace Dumux diff --git a/dumux/flux/forchheimerslaw.hh b/dumux/flux/forchheimerslaw.hh index fe95f4286580f2e9cd913662e179de2a14cfddd7..c53f18edbaf7f7dd9a9e78f65ca774a7a1712a8b 100644 --- a/dumux/flux/forchheimerslaw.hh +++ b/dumux/flux/forchheimerslaw.hh @@ -34,10 +34,10 @@ namespace Dumux { // forward declaration -template +template class ForchheimersLawImplementation { - static_assert(discMethod == DiscretizationMethod::cctpfa || discMethod == DiscretizationMethod::box, "Forchheimer only implemented for cctpfa or box!"); + static_assert(GetPropType::discMethod == DiscretizationMethods::cctpfa || GetPropType::discMethod == DiscretizationMethods::box, "Forchheimer only implemented for cctpfa or box!"); }; /*! @@ -50,7 +50,7 @@ class ForchheimersLawImplementation template using ForchheimersLaw = ForchheimersLawImplementation, GetPropType, GetPropType>, - GetPropType::discMethod>; + typename GetPropType::DiscretizationMethod>; } // end namespace Dumux diff --git a/dumux/flux/fourierslaw.hh b/dumux/flux/fourierslaw.hh index b41f8288914c7c45fa99cc79ff0fbbdec07c77ad..ae7f08f869fdb3091af38800bed8663796c252d8 100644 --- a/dumux/flux/fourierslaw.hh +++ b/dumux/flux/fourierslaw.hh @@ -32,7 +32,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawImplementation {}; @@ -41,7 +41,7 @@ class FouriersLawImplementation * \brief Evaluates the heat conduction flux according to Fouriers's law */ template -using FouriersLaw = FouriersLawImplementation::discMethod>; +using FouriersLaw = FouriersLawImplementation::DiscretizationMethod>; } // end namespace Dumux diff --git a/dumux/flux/fourierslawnonequilibrium.hh b/dumux/flux/fourierslawnonequilibrium.hh index 135e21b72ca7e1d74d715ed00b99905b3f8a7738..f0aa66ab4a0d4bdfadb80bb077f6460b79bfcbfe 100644 --- a/dumux/flux/fourierslawnonequilibrium.hh +++ b/dumux/flux/fourierslawnonequilibrium.hh @@ -31,7 +31,7 @@ namespace Dumux { // forward declaration -template +template class FouriersLawNonEquilibriumImplementation {}; @@ -40,7 +40,7 @@ class FouriersLawNonEquilibriumImplementation * \brief Evaluates the heat conduction flux according to Fouriers's law */ template -using FouriersLawNonEquilibrium = FouriersLawNonEquilibriumImplementation::discMethod>; +using FouriersLawNonEquilibrium = FouriersLawNonEquilibriumImplementation::DiscretizationMethod>; } // end namespace Dumux diff --git a/dumux/flux/maxwellstefanslaw.hh b/dumux/flux/maxwellstefanslaw.hh index cd3a177f9e95599e759d38d1d000d887f6386da7..e16933b4832a674345d73c36f582cfa688e06cce 100644 --- a/dumux/flux/maxwellstefanslaw.hh +++ b/dumux/flux/maxwellstefanslaw.hh @@ -32,7 +32,7 @@ namespace Dumux { // forward declaration -template +template class MaxwellStefansLawImplementation {}; @@ -41,7 +41,7 @@ class MaxwellStefansLawImplementation * \brief Evaluates the diffusive mass flux according to Maxwell Stafan's law */ template -using MaxwellStefansLaw = MaxwellStefansLawImplementation::discMethod, referenceSystem>; +using MaxwellStefansLaw = MaxwellStefansLawImplementation::DiscretizationMethod, referenceSystem>; } // end namespace diff --git a/dumux/flux/staggered/freeflow/fickslaw.hh b/dumux/flux/staggered/freeflow/fickslaw.hh index a1a36d25ae7f758df2bb91ef11acb0dac4452af9..146b025e1147b29e612dcb4b7fd9f3cc73a58135 100644 --- a/dumux/flux/staggered/freeflow/fickslaw.hh +++ b/dumux/flux/staggered/freeflow/fickslaw.hh @@ -42,7 +42,7 @@ namespace Dumux { // forward declaration -template +template class FicksLawImplementation; /*! @@ -50,7 +50,7 @@ class FicksLawImplementation; * \brief Specialization of Fick's Law for the staggered free flow method. */ template -class FicksLawImplementation +class FicksLawImplementation { using Scalar = GetPropType; using GridGeometry = GetPropType; @@ -72,8 +72,10 @@ class FicksLawImplementation +template class FouriersLawImplementation; /*! @@ -42,7 +42,7 @@ class FouriersLawImplementation; * \brief Specialization of Fourier's Law for the staggered free flow method. */ template -class FouriersLawImplementation +class FouriersLawImplementation { using Scalar = GetPropType; using GridGeometry = GetPropType; @@ -54,8 +54,9 @@ class FouriersLawImplementation using Indices = typename GetPropType::Indices; public: + using DiscretizationMethod = DiscretizationMethods::Staggered; // state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::staggered; + static constexpr DiscretizationMethod discMethod{}; //! state the type for the corresponding cache //! We don't cache anything for this law diff --git a/dumux/flux/staggered/freeflow/maxwellstefanslaw.hh b/dumux/flux/staggered/freeflow/maxwellstefanslaw.hh index d74deb75234d4300dc7b79fc1e8f618704710d7a..d6408f78930a02e9d68cfe80a23ef9175446d173 100644 --- a/dumux/flux/staggered/freeflow/maxwellstefanslaw.hh +++ b/dumux/flux/staggered/freeflow/maxwellstefanslaw.hh @@ -38,7 +38,7 @@ namespace Dumux { // forward declaration -template +template class MaxwellStefansLawImplementation; /*! @@ -46,7 +46,7 @@ class MaxwellStefansLawImplementation; * \brief Specialization of Maxwell Stefan's Law for the Staggered method. */ template -class MaxwellStefansLawImplementation +class MaxwellStefansLawImplementation { using Scalar = GetPropType; using Problem = GetPropType; @@ -75,8 +75,10 @@ class MaxwellStefansLawImplementation }; // forward declaration -template +template class FicksLawImplementation; /*! @@ -116,8 +116,8 @@ struct IsFicksLaw : public std::false_type {}; * \brief This structs indicates that Fick's law is used for diffusion. * \tparam DiffLaw The diffusion law. */ -template -struct IsFicksLaw> : public std::true_type {}; +template +struct IsFicksLaw> : public std::true_type {}; /*! * \ingroup StokesDarcyCoupling @@ -194,11 +194,11 @@ struct IndexHelper }; //! forward declare -template +template class DarcysLawImplementation; //! forward declare -template +template class ForchheimersLawImplementation; @@ -241,8 +241,8 @@ class StokesDarcyCouplingDataImplementationBase static constexpr auto darcyIdx = CouplingManager::darcyIdx; using AdvectionType = GetPropType, Properties::AdvectionType>; - using DarcysLaw = DarcysLawImplementation, GridGeometry::discMethod>; - using ForchheimersLaw = ForchheimersLawImplementation, GridGeometry::discMethod>; + using DarcysLaw = DarcysLawImplementation, typename GridGeometry::DiscretizationMethod>; + using ForchheimersLaw = ForchheimersLawImplementation, typename GridGeometry::DiscretizationMethod>; static constexpr bool adapterUsed = ModelTraits::numFluidPhases() > 1; using IndexHelper = Dumux::IndexHelper, adapterUsed>; diff --git a/dumux/multidomain/facet/box/fickslaw.hh b/dumux/multidomain/facet/box/fickslaw.hh index 6ae5704709e0ab406bd5ab7d7b20017a7dc72f55..075aa5f17520f2a376f3c15a8ab073f600c57121 100644 --- a/dumux/multidomain/facet/box/fickslaw.hh +++ b/dumux/multidomain/facet/box/fickslaw.hh @@ -49,9 +49,9 @@ namespace Dumux { */ template class BoxFacetCouplingFicksLaw -: public FicksLawImplementation +: public FicksLawImplementation { - using ParentType = FicksLawImplementation; + using ParentType = FicksLawImplementation; using GridGeometry = GetPropType; using FVElementGeometry = typename GridGeometry::LocalView; diff --git a/dumux/multidomain/facet/box/fourierslaw.hh b/dumux/multidomain/facet/box/fourierslaw.hh index e492a8b3d733d2d78c1003cdd039cf0118b8929b..a6363228c35c4ab4448f953534fe9227a5e43ccc 100644 --- a/dumux/multidomain/facet/box/fourierslaw.hh +++ b/dumux/multidomain/facet/box/fourierslaw.hh @@ -50,9 +50,9 @@ namespace Dumux { */ template class BoxFacetCouplingFouriersLaw -: public FouriersLawImplementation +: public FouriersLawImplementation { - using ParentType = FouriersLawImplementation; + using ParentType = FouriersLawImplementation; using Scalar = GetPropType; using GridGeometry = GetPropType; diff --git a/dumux/multidomain/facet/cellcentered/tpfa/darcyslaw.hh b/dumux/multidomain/facet/cellcentered/tpfa/darcyslaw.hh index 937c76b9a344204df9d6ad625ab350c68b536956..05c4ec5d7abb274ae2604eda9af6ccbfd265baec 100644 --- a/dumux/multidomain/facet/cellcentered/tpfa/darcyslaw.hh +++ b/dumux/multidomain/facet/cellcentered/tpfa/darcyslaw.hh @@ -155,7 +155,8 @@ class CCTpfaFacetCouplingDarcysLawImpl; //! export the type used to store transmissibilities @@ -428,7 +429,8 @@ class CCTpfaFacetCouplingDarcysLawImpl; //! export the type used to store transmissibilities diff --git a/dumux/multidomain/facet/cellcentered/tpfa/fickslaw.hh b/dumux/multidomain/facet/cellcentered/tpfa/fickslaw.hh index e009f41b12401a59929f2d71a0a88988f57dfb6e..f56365cb5e5347557f0588b544f0ce5b49cfabf1 100644 --- a/dumux/multidomain/facet/cellcentered/tpfa/fickslaw.hh +++ b/dumux/multidomain/facet/cellcentered/tpfa/fickslaw.hh @@ -67,10 +67,10 @@ using CCTpfaFacetCouplingFicksLaw = */ template class CCTpfaFacetCouplingFicksLawImpl -: public FicksLawImplementation +: public FicksLawImplementation { using Implementation = CCTpfaFacetCouplingFicksLawImpl; - using ParentType = FicksLawImplementation; + using ParentType = FicksLawImplementation; using GridGeometry = GetPropType; using FVElementGeometry = typename GridGeometry::LocalView; @@ -150,8 +150,9 @@ public: //! export the type for the corresponding cache using Cache = FacetCouplingFicksLawCache; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; //! Return the reference system static constexpr ReferenceSystemFormulation referenceSystemFormulation() @@ -306,10 +307,10 @@ public: */ template class CCTpfaFacetCouplingFicksLawImpl -: public FicksLawImplementation +: public FicksLawImplementation { using Implementation = CCTpfaFacetCouplingFicksLawImpl; - using ParentType = FicksLawImplementation; + using ParentType = FicksLawImplementation; using GridGeometry = GetPropType; using FVElementGeometry = typename GridGeometry::LocalView; @@ -384,8 +385,9 @@ public: //! export the type for the corresponding cache using Cache = FacetCouplingFicksLawCache; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + static constexpr DiscretizationMethod discMethod{}; //! Return the reference system static constexpr ReferenceSystemFormulation referenceSystemFormulation() diff --git a/dumux/multidomain/facet/cellcentered/tpfa/fourierslaw.hh b/dumux/multidomain/facet/cellcentered/tpfa/fourierslaw.hh index 6e43c638be04d57de0f6d65139e056f6b629f580..4c979da2c29d307c6993360c4d08f88966597fbb 100644 --- a/dumux/multidomain/facet/cellcentered/tpfa/fourierslaw.hh +++ b/dumux/multidomain/facet/cellcentered/tpfa/fourierslaw.hh @@ -64,10 +64,10 @@ using CCTpfaFacetCouplingFouriersLaw = */ template class CCTpfaFacetCouplingFouriersLawImpl -: public FouriersLawImplementation +: public FouriersLawImplementation { using Implementation = CCTpfaFacetCouplingFouriersLawImpl; - using ParentType = FouriersLawImplementation; + using ParentType = FouriersLawImplementation; using Scalar = GetPropType; using GridGeometry = GetPropType; @@ -137,7 +137,8 @@ public: using Cache = FacetCouplingFouriersLawCache; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; + static constexpr DiscretizationMethod discMethod{}; //! Compute the conductive heat flux template< class Problem, class ElementVolumeVariables, class ElementFluxVarsCache > @@ -270,10 +271,10 @@ public: */ template class CCTpfaFacetCouplingFouriersLawImpl -: public FouriersLawImplementation +: public FouriersLawImplementation { using Implementation = CCTpfaFacetCouplingFouriersLawImpl; - using ParentType = FouriersLawImplementation; + using ParentType = FouriersLawImplementation; using Scalar = GetPropType; using GridGeometry = GetPropType; @@ -338,7 +339,8 @@ public: using Cache = FacetCouplingFouriersLawCache; //! state the discretization method this implementation belongs to - static const DiscretizationMethod discMethod = DiscretizationMethod::cctpfa; + using DiscretizationMethod = DiscretizationMethods::CCTpfa; + static constexpr DiscretizationMethod discMethod{}; //! Compute the conductive heat flux template< class Problem, class ElementVolumeVariables, class ElementFluxVarsCache >