Merge pull request #1488 from joakim-hove/load-THPRES

Load thpres
This commit is contained in:
Joakim Hove
2018-06-01 11:47:19 +02:00
committed by GitHub
+2 -2
View File
@@ -325,7 +325,7 @@ void computeMaxDp(std::map<std::pair<int, int>, double>& maxDp,
{ {
const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig(); const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig();
std::vector<double> thpres_vals; std::vector<double> thpres_vals;
if (simulationConfig.hasThresholdPressure()) { if (simulationConfig.useThresholdPressure()) {
const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure(); const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure();
const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM"); const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM");
const auto& eqlnumData = eqlnum.getData(); const auto& eqlnumData = eqlnum.getData();
@@ -386,7 +386,7 @@ void computeMaxDp(std::map<std::pair<int, int>, double>& maxDp,
{ {
const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig(); const SimulationConfig& simulationConfig = eclipseState.getSimulationConfig();
std::vector<double> thpres_vals; std::vector<double> thpres_vals;
if (simulationConfig.hasThresholdPressure()) { if (simulationConfig.useThresholdPressure()) {
const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure(); const ThresholdPressure& thresholdPressure = simulationConfig.getThresholdPressure();
const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM"); const auto& eqlnum = eclipseState.get3DProperties().getIntGridProperty("EQLNUM");
const auto& eqlnumData = eqlnum.getData(); const auto& eqlnumData = eqlnum.getData();