diff --git a/dumux/implicit/staggered/localjacobian.hh b/dumux/implicit/staggered/localjacobian.hh index 31c2b42c60096defcaa308d0cc72187fa8565601..dc53aa06c72e2031de38db0e33309fe5db38eef0 100644 --- a/dumux/implicit/staggered/localjacobian.hh +++ b/dumux/implicit/staggered/localjacobian.hh @@ -120,7 +120,6 @@ public: StaggeredLocalJacobian() { numericDifferenceMethod_ = GET_PARAM_FROM_GROUP(TypeTag, int, Implicit, NumericDifferenceMethod); - baseEps_ = GET_PROP_VALUE(TypeTag, BaseEpsilon); } /*! @@ -573,7 +572,8 @@ protected: AssemblyMap assemblyMap_; - std::array<std::array<Scalar, 2>, 2> baseEps_; + using BaseEpsilon = typename GET_PROP(TypeTag, BaseEpsilon); + const std::array<std::array<Scalar, 2>, 2> baseEps_ = BaseEpsilon::getEps(); }; } diff --git a/dumux/implicit/staggered/propertydefaults.hh b/dumux/implicit/staggered/propertydefaults.hh index d9c8d6679a4cff44774389662a886d8d74dea559..b5d4e3c4fa34abcdfe5697e91d5e610370ae1fb1 100644 --- a/dumux/implicit/staggered/propertydefaults.hh +++ b/dumux/implicit/staggered/propertydefaults.hh @@ -262,8 +262,11 @@ private: static constexpr Scalar dFacedFace = 1e-8; public: - static constexpr std::array<std::array<Scalar, 2>, 2> value{{{dCCdCC, dCCdFace}, - {dFacedCC, dFacedFace}}}; + static constexpr auto getEps() + { + return std::array<std::array<Scalar, 2>, 2>{{{dCCdCC, dCCdFace}, + {dFacedCC, dFacedFace}}}; + } }; } // namespace Properties