mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4944 from bska/rescale-swatinit-pcow-at-restart
Apply Full SWATINIT-Like PCOW Rescaling at Restart
This commit is contained in:
commit
e5c29c768d
@ -1090,9 +1090,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (simulator_.vanguard().eclState().fieldProps().has_double("SWATINIT")) {
|
if (simulator_.vanguard().eclState().fieldProps().has_double("SWATINIT")) {
|
||||||
const auto& oilWaterScaledEpsInfoDrainage
|
simulator.problem().materialLawManager()
|
||||||
= simulator.problem().materialLawManager()->oilWaterScaledEpsInfoDrainage(elemIdx);
|
->applyRestartSwatInit(elemIdx, this->ppcw_[elemIdx]);
|
||||||
const_cast<EclEpsScalingPointsInfo<Scalar>&>(oilWaterScaledEpsInfoDrainage).maxPcow = this->ppcw_[elemIdx];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user