check groups from top

This commit is contained in:
Tor Harald Sandve 2019-12-16 13:53:03 +01:00
parent 2a0f8a0465
commit bec8b33f70

View File

@ -1684,12 +1684,7 @@ namespace Opm {
BlackoilWellModel<TypeTag>::
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);
}
}