From dd3fb0328660658a27dbf6478cbf938dfcf86187 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Wed, 30 May 2018 14:10:54 +0200 Subject: [PATCH] THPRES API updates --- opm/simulators/thresholdPressures.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/thresholdPressures.hpp b/opm/simulators/thresholdPressures.hpp index ac6d42275..627e3b41f 100644 --- a/opm/simulators/thresholdPressures.hpp +++ b/opm/simulators/thresholdPressures.hpp @@ -325,7 +325,7 @@ void computeMaxDp(std::map, double>& maxDp, { const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig(); std::vector thpres_vals; - if (simulationConfig.hasThresholdPressure()) { + if (simulationConfig.useThresholdPressure()) { const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure(); const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM"); const auto& eqlnumData = eqlnum.getData(); @@ -386,7 +386,7 @@ void computeMaxDp(std::map, double>& maxDp, { const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig(); std::vector thpres_vals; - if (simulationConfig.hasThresholdPressure()) { + if (simulationConfig.useThresholdPressure()) { const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure(); const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM"); const auto& eqlnumData = eqlnum.getData();