fixed issue with use of cachedVariables in initialization fase

This commit is contained in:
hnil 2023-03-23 22:37:44 +01:00
parent a81f80f4fb
commit 7e63dc3096

View File

@ -1454,7 +1454,7 @@ public:
*/ */
std::shared_ptr<const EclMaterialLawManager> materialLawManager() const std::shared_ptr<const EclMaterialLawManager> materialLawManager() const
{ return materialLawManager_; } { return materialLawManager_; }
template <class FluidState> template <class FluidState>
void updateRelperms( void updateRelperms(
std::array<Evaluation,numPhases> &mobility, std::array<Evaluation,numPhases> &mobility,
@ -1735,6 +1735,7 @@ public:
*/ */
void initialSolutionApplied() void initialSolutionApplied()
{ {
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx*/0);
// initialize the wells. Note that this needs to be done after initializing the // initialize the wells. Note that this needs to be done after initializing the
// intrinsic permeabilities and the after applying the initial solution because // intrinsic permeabilities and the after applying the initial solution because
// the well model uses these... // the well model uses these...