From 571c24d10c30bebbbffa20ec093e8898242dce9a Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Mon, 18 Nov 2019 12:22:35 +0100 Subject: [PATCH] Use EclEpsGridProperties constructor --- opm/core/props/satfunc/RelpermDiagnostics_impl.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opm/core/props/satfunc/RelpermDiagnostics_impl.hpp b/opm/core/props/satfunc/RelpermDiagnostics_impl.hpp index a4dd0bc2d..ef2e99a52 100644 --- a/opm/core/props/satfunc/RelpermDiagnostics_impl.hpp +++ b/opm/core/props/satfunc/RelpermDiagnostics_impl.hpp @@ -23,10 +23,12 @@ #include #include +#include #include #include #include + namespace Opm { template @@ -54,8 +56,7 @@ namespace Opm { const auto dims = Opm::UgGridHelpers::cartDims(grid); const auto& compressedToCartesianIdx = Opm::compressedToCartesian(nc, global_cell); scaledEpsInfo_.resize(nc); - EclEpsGridProperties epsGridProperties; - epsGridProperties.initFromDeck(deck, eclState, /*imbibition=*/false); + EclEpsGridProperties epsGridProperties(eclState, false); const auto& satnumData = eclState.get3DProperties().getIntGridProperty("SATNUM").getData(); const std::string tag = "Scaled endpoints"; for (int c = 0; c < nc; ++c) {