diff --git a/examples/problems/fingerproblem.hh b/examples/problems/fingerproblem.hh index e454c8c4d..f4b6acbb2 100644 --- a/examples/problems/fingerproblem.hh +++ b/examples/problems/fingerproblem.hh @@ -134,15 +134,8 @@ struct EnableConstraints { static constexpr in namespace Opm::Parameters { -template -struct InitialWaterSaturation { using type = Properties::UndefinedProperty; }; - -template -struct InitialWaterSaturation -{ - using type = GetPropType; - static constexpr type value = 0.01; -}; +template +struct InitialWaterSaturation { static constexpr Scalar value = 0.01; }; } // namespace Opm::Parameters @@ -259,7 +252,7 @@ public: { ParentType::registerParameters(); - Parameters::registerParam + Parameters::Register> ("The initial saturation in the domain [] of the wetting phase"); Parameters::SetDefault(20); @@ -531,7 +524,7 @@ private: auto& fs = initialFluidState_; fs.setPressure(wettingPhaseIdx, /*pressure=*/1e5); - Scalar Sw = Parameters::get(); + Scalar Sw = Parameters::Get>(); fs.setSaturation(wettingPhaseIdx, Sw); fs.setSaturation(nonWettingPhaseIdx, 1 - Sw);