Skip to content

Commit

Permalink
Merge pull request #1173 from totto82/fix_fallout_none_productionSpec…
Browse files Browse the repository at this point in the history
…ification

Fix fallout if no group controll (NONE) is specified for a group
  • Loading branch information
atgeirr authored Aug 18, 2017
2 parents 4a8d74a + 9a306de commit c98683e
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 c98683e

Please sign in to comment.