fix to allow running a one-phase system

This commit is contained in:
Paul Egberts 2021-03-19 10:18:04 +01:00
parent eea578a0ef
commit fc2524a57a

View File

@ -952,8 +952,8 @@ private:
const Opm::EclipseState& eclState,
unsigned satRegionIdx)
{
if (hasOil)
// we don't read anything if oil is present
if (!hasGas || !hasWater || hasOil)
// we don't read anything if either the gas or the water phase is not active or if oil is present
return;
dest[satRegionIdx] = std::make_shared<GasWaterEffectiveTwoPhaseParams>();