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:
Andreas Lauser 2017-01-13 18:58:07 +01:00
parent 30e9d3826d
commit ae38de70ef

View File

@ -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);