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
commit e5c29c768d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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]);
}
}