mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
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:
parent
0f40727fa2
commit
4f23ef92e3
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user