mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 02:30:18 -06:00
flow_ebos: update the solution of the eWoms model from the reservoir state before each time step
this is has become necessary by the recent SWATINIT changes and is needed to calculate the fluid-in-place consistently as well as for ebos to use the correct initial solution for the initial linearization.
This commit is contained in:
parent
30e9d3826d
commit
ae38de70ef
@ -256,6 +256,11 @@ public:
|
||||
|
||||
auto solver = createSolver(well_model);
|
||||
|
||||
// make sure that the ebos side of the model is consistent with the reservoir
|
||||
// state object.
|
||||
solver->model().convertInput(/*iterationIdx=*/0, state, ebosSimulator_);
|
||||
ebosSimulator_.model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
||||
|
||||
// Compute orignal FIP;
|
||||
if (!ooip_computed) {
|
||||
OOIP = solver->computeFluidInPlace(fipnum);
|
||||
|
Loading…
Reference in New Issue
Block a user