THPRES API updates

This commit is contained in:
Joakim Hove 2018-05-30 14:10:54 +02:00
parent 337ca0a3ab
commit dd3fb03286

View File

@ -325,7 +325,7 @@ void computeMaxDp(std::map<std::pair<int, int>, double>& maxDp,
{
const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig();
std::vector<double> 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<std::pair<int, int>, double>& maxDp,
{
const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig();
std::vector<double> 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();