From e372bde838b21461c51a783e780fee25f9ded1bb Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 5 Nov 2024 11:09:55 +0100 Subject: [PATCH] Dont redistribute gaslift on group that are not on group target --- opm/simulators/wells/GasLiftStage2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/GasLiftStage2.cpp b/opm/simulators/wells/GasLiftStage2.cpp index c44c15cd7..176b2efd9 100644 --- a/opm/simulators/wells/GasLiftStage2.cpp +++ b/opm/simulators/wells/GasLiftStage2.cpp @@ -421,7 +421,7 @@ optimizeGroup_(const Group& group) { const auto& group_name = group.name(); const auto prod_control = this->group_state_.production_control(group_name); - if (this->glo_.has_group(group.name()) || ((prod_control != Group::ProductionCMode::NONE) && (prod_control != Group::ProductionCMode::FLD))) + if ((prod_control != Group::ProductionCMode::NONE) && (prod_control != Group::ProductionCMode::FLD)) { if (this->debug) { const std::string msg = fmt::format("optimizing (control = {})", Group::ProductionCMode2String(prod_control));