From 352e40d109c4fd81c04562c0bbdb0d1f43d2edcd Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 19 Apr 2021 14:34:38 +0200 Subject: [PATCH] honour group available for higher controll --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 64f863a21..bc2d74530 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -2594,7 +2594,7 @@ namespace Opm { for (Phase phase : all) { // Check higher up only if under individual (not FLD) control. const Group::InjectionCMode& currentControl = this->wellState().currentInjectionGroupControl(phase, group.name()); - if (currentControl != Group::InjectionCMode::FLD) { + if (currentControl != Group::InjectionCMode::FLD && group.injectionGroupControlAvailable(phase)) { const Group& parentGroup = schedule().getGroup(group.parent(), reportStepIdx); const std::pair changed = WellGroupHelpers::checkGroupConstraintsInj( group.name(), @@ -2628,7 +2628,7 @@ namespace Opm { } // Check higher up only if under individual (not FLD) control. const Group::ProductionCMode& currentControl = this->wellState().currentProductionGroupControl(group.name()); - if (currentControl != Group::ProductionCMode::FLD) { + if (currentControl != Group::ProductionCMode::FLD && group.productionGroupControlAvailable()) { const Group& parentGroup = schedule().getGroup(group.parent(), reportStepIdx); const std::pair changed = WellGroupHelpers::checkGroupConstraintsProd( group.name(),