From b8a0005e8deb58e076d4cca7d0b519ae0891d89d Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 21 Oct 2024 08:33:54 +0200 Subject: [PATCH] FIX. Use rate not group potentials in CheckGroupTargetViolated --- opm/simulators/wells/GasLiftSingleWellGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/GasLiftSingleWellGeneric.cpp b/opm/simulators/wells/GasLiftSingleWellGeneric.cpp index 03fe50a94..4669f5792 100644 --- a/opm/simulators/wells/GasLiftSingleWellGeneric.cpp +++ b/opm/simulators/wells/GasLiftSingleWellGeneric.cpp @@ -261,7 +261,7 @@ checkGroupTargetsViolated(const BasicRates& rates, auto target_opt = this->group_info_.getTarget(rate_type, group_name); if (target_opt) { auto delta_rate = new_rates[rate_type] - rates[rate_type]; - auto new_group_rate = this->group_info_.getPotential(rate_type, group_name) + efficiency * delta_rate; + auto new_group_rate = this->group_info_.getRate(rate_type, group_name) + efficiency * delta_rate; if (new_group_rate > *target_opt) { if (this->debug) { const std::string msg