Merge pull request #4944 from bska/rescale-swatinit-pcow-at-restart

Apply Full SWATINIT-Like PCOW Rescaling at Restart
This commit is contained in:
Bård Skaflestad
2023-10-25 16:44:08 +02:00
committed by GitHub

View File

@@ -1090,9 +1090,8 @@ public:
}
if (simulator_.vanguard().eclState().fieldProps().has_double("SWATINIT")) {
const auto& oilWaterScaledEpsInfoDrainage
= simulator.problem().materialLawManager()->oilWaterScaledEpsInfoDrainage(elemIdx);
const_cast<EclEpsScalingPointsInfo<Scalar>&>(oilWaterScaledEpsInfoDrainage).maxPcow = this->ppcw_[elemIdx];
simulator.problem().materialLawManager()
->applyRestartSwatInit(elemIdx, this->ppcw_[elemIdx]);
}
}