From 8909b259d0b898577055db76b69e894e28e79d38 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 28 Mar 2022 10:43:24 +0200 Subject: [PATCH] don't shut wells due to ratio when rate is negative --- opm/simulators/wells/WellInterfaceFluidSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/WellInterfaceFluidSystem.cpp b/opm/simulators/wells/WellInterfaceFluidSystem.cpp index 413f06b03..e31717875 100644 --- a/opm/simulators/wells/WellInterfaceFluidSystem.cpp +++ b/opm/simulators/wells/WellInterfaceFluidSystem.cpp @@ -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.;