From bec8b33f70a4b6738d15ec93919eb4e69a187dcd Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 16 Dec 2019 13:53:03 +0100 Subject: [PATCH] check groups from top --- opm/simulators/wells/BlackoilWellModel_impl.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/opm/simulators/wells/BlackoilWellModel_impl.hpp b/opm/simulators/wells/BlackoilWellModel_impl.hpp index 566dc511c..dfbc25046 100644 --- a/opm/simulators/wells/BlackoilWellModel_impl.hpp +++ b/opm/simulators/wells/BlackoilWellModel_impl.hpp @@ -1684,12 +1684,7 @@ namespace Opm { BlackoilWellModel:: checkGroupConstraints(const Group& group, Opm::DeferredLogger& deferred_logger) { - // call recursively const int reportStepIdx = ebosSimulator_.episodeIndex(); - for (const std::string& groupName : group.groups()) { - checkGroupConstraints( schedule().getGroup(groupName, reportStepIdx), deferred_logger); - } - const auto& summaryState = ebosSimulator_.vanguard().summaryState(); auto& well_state = well_state_; @@ -1879,6 +1874,10 @@ namespace Opm { //neither production or injecting group FIELD? } + // call recursively down the group hiearchy + for (const std::string& groupName : group.groups()) { + checkGroupConstraints( schedule().getGroup(groupName, reportStepIdx), deferred_logger); + } }