don't shut wells due to ratio when rate is negative

This commit is contained in:
Tor Harald Sandve 2022-03-28 10:43:24 +02:00
parent 71acf4e056
commit 8909b259d0

View File

@ -550,7 +550,7 @@ checkMaxWaterCutLimit(const WellEconProductionLimits& econ_production_limits,
const double oil_rate = -rates[pu.phase_pos[Oil]];
const double water_rate = -rates[pu.phase_pos[Water]];
const double liquid_rate = oil_rate + water_rate;
if (liquid_rate == 0.)
if (liquid_rate <= 0.)
return 0.;
else if (water_rate < 0)
return 0.;