From ce0c75b8b6223a6408abecbe5f95a759c5c020e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 22 May 2023 17:40:27 +0200 Subject: [PATCH] Update timeIdx 1 intensive quantities if necessary. --- ebos/eclproblem.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index a9327304120..cc73c7ecc29 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -1745,7 +1745,17 @@ public: */ void initialSolutionApplied() { + // Calculate all intensive quantities. this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx*/0); + + // We also need the intensive quantities for timeIdx == 1 + // corresponding to the start of the current timestep, if we + // do not use the storage cache, or if we cannot recycle the + // first iteration storage. + if (!this->model().enableStorageCache() || !this->recycleFirstIterationStorage()) { + this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx*/1); + } + // initialize the wells. Note that this needs to be done after initializing the // intrinsic permeabilities and the after applying the initial solution because // the well model uses these...