Skip to content

Commit

Permalink
Fix fallout if no group controll (NONE) is specified for a group
Browse files Browse the repository at this point in the history
  • Loading branch information
totto82 committed Aug 18, 2017
1 parent 4a8d74a commit 9a306de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opm/core/wells/WellCollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,16 @@ namespace Opm
WellsGroupInterface* parent_node = leaf_nodes_[i]->getParent();
// update the target within this group.
if (leaf_nodes_[i]->isProducer()) {
if (parent_node->prodSpec().control_mode_ == ProductionSpecification::NONE) {
continue;
}
parent_node->updateWellProductionTargets(well_rates);
}

if (leaf_nodes_[i]->isInjector()) {
if (parent_node->injSpec().control_mode_ == InjectionSpecification::NONE) {
continue;
}
parent_node->updateWellInjectionTargets(well_rates);
}
}
Expand Down

0 comments on commit 9a306de

Please sign in to comment.