adapt to the threshold pressure related API changes

to be able to determine the threshold pressure from the initial
condition it needs to be able to access the initial condition, i.e.,
the initial simulator state, material properties object and gravity
constant need to be passed to the thresholdPressure() function.
This commit is contained in:
Andreas Lauser 2015-10-20 13:34:53 +02:00
parent 0f40727fa2
commit 4f23ef92e3
2 changed files with 6 additions and 2 deletions

View File

@ -367,7 +367,9 @@ try
// initialize variables
simtimer.init(timeMap);
std::vector<double> threshold_pressures = thresholdPressures(parseMode, eclipseState, grid);
std::map<std::pair<int, int>, double> maxDp;
computeMaxDp(maxDp, deck, eclipseState, grid, state, props, gravity[2]);
std::vector<double> threshold_pressures = thresholdPressures(deck, eclipseState, grid, maxDp);
SimulatorFullyImplicitBlackoil< Grid > simulator(param,
grid,

View File

@ -377,7 +377,9 @@ try
// initialize variables
simtimer.init(timeMap);
std::vector<double> threshold_pressures = thresholdPressures(parseMode, eclipseState, grid);
std::map<std::pair<int, int>, double> maxDp;
computeMaxDp(maxDp, deck, eclipseState, grid, state, props, gravity[2]);
std::vector<double> threshold_pressures = thresholdPressures(deck, eclipseState, grid, maxDp);
SimulatorFullyImplicitBlackoilSolvent< Grid > simulator(param,
grid,