Merge pull request #3743 from akva2/adjust_material_adjustments

adjust to upstream changes
This commit is contained in:
Atgeirr Flø Rasmussen 2021-12-16 09:34:46 +01:00 committed by GitHub
commit 74b79d4626
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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