mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
Fix fallout if no group controll (NONE) is specified for a group
This commit is contained in:
parent
6b55b8316b
commit
d643476ea5
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user