mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Invalidate and update the intensive quantities instead of just invalidate them
This commit is contained in:
parent
6a592a8c55
commit
85e25f7e0e
@ -1059,9 +1059,8 @@ public:
|
|||||||
// if TUNING is enabled, also limit the time step size after a tuning event to TSINIT
|
// if TUNING is enabled, also limit the time step size after a tuning event to TSINIT
|
||||||
dt = std::min(dt, initialTimeStepSize_);
|
dt = std::min(dt, initialTimeStepSize_);
|
||||||
simulator.setTimeStepSize(dt);
|
simulator.setTimeStepSize(dt);
|
||||||
|
|
||||||
if (doInvalidate)
|
if (doInvalidate)
|
||||||
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -1104,7 +1103,7 @@ public:
|
|||||||
invalidateIntensiveQuantities = invalidateFromMaxWaterSat || invalidateFromMinPressure;
|
invalidateIntensiveQuantities = invalidateFromMaxWaterSat || invalidateFromMinPressure;
|
||||||
|
|
||||||
if (invalidateIntensiveQuantities)
|
if (invalidateIntensiveQuantities)
|
||||||
this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
|
|
||||||
wellModel_.beginTimeStep();
|
wellModel_.beginTimeStep();
|
||||||
if (enableAquifers_)
|
if (enableAquifers_)
|
||||||
|
@ -554,7 +554,7 @@ namespace Opm {
|
|||||||
// residual
|
// residual
|
||||||
|
|
||||||
// if the solution is updated, the intensive quantities need to be recalculated
|
// if the solution is updated, the intensive quantities need to be recalculated
|
||||||
ebosSimulator_.model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
ebosSimulator_.model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return true if output to cout is wanted.
|
/// Return true if output to cout is wanted.
|
||||||
|
Loading…
Reference in New Issue
Block a user