use relocated KrModel

This commit is contained in:
Arne Morten Kvarving 2020-03-10 10:25:33 +01:00
parent a003a21d5c
commit 51e5574c07

View File

@ -655,9 +655,10 @@ private:
assert(numEnabled == 3);
threePhaseApproach_ = EclMultiplexerApproach::EclDefaultApproach;
if (runspec.stoneType() == Runspec::StoneType::STONE2)
const auto& satctrls = runspec.saturationFunctionControls();
if (satctrls.krModel() == SatFuncControls::ThreePhaseOilKrModel::Stone2)
threePhaseApproach_ = EclMultiplexerApproach::EclStone2Approach;
else if (runspec.stoneType() == Runspec::StoneType::STONE1)
else if (satctrls.krModel() == SatFuncControls::ThreePhaseOilKrModel::Stone1)
threePhaseApproach_ = EclMultiplexerApproach::EclStone1Approach;
}
}