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();