diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index de0f2e553..f9be1b94b 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1059,9 +1059,8 @@ public: // if TUNING is enabled, also limit the time step size after a tuning event to TSINIT dt = std::min(dt, initialTimeStepSize_); simulator.setTimeStepSize(dt); - if (doInvalidate) - this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0); + this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0); } /*! @@ -1104,7 +1103,7 @@ public: invalidateIntensiveQuantities = invalidateFromMaxWaterSat || invalidateFromMinPressure; if (invalidateIntensiveQuantities) - this->model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0); + this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0); wellModel_.beginTimeStep(); if (enableAquifers_) diff --git a/opm/simulators/flow/BlackoilModelEbos.hpp b/opm/simulators/flow/BlackoilModelEbos.hpp index 8b4b2f8ff..5cb8b1b16 100644 --- a/opm/simulators/flow/BlackoilModelEbos.hpp +++ b/opm/simulators/flow/BlackoilModelEbos.hpp @@ -554,7 +554,7 @@ namespace Opm { // residual // 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.