mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
using variable only_group instead of hard-coded false.
when applying group production control.
This commit is contained in:
parent
a77750c0b6
commit
0e3118af42
@ -344,14 +344,14 @@ namespace Opm
|
||||
return;
|
||||
}
|
||||
if (!only_group || prodSpec().control_mode_ == ProductionSpecification::FLD) {
|
||||
const double my_guide_rate = productionGuideRate(false);
|
||||
const double my_guide_rate = productionGuideRate(only_group);
|
||||
if (my_guide_rate == 0.0) {
|
||||
// Nothing to do here
|
||||
return;
|
||||
}
|
||||
for (size_t i = 0; i < children_.size(); ++i) {
|
||||
const double child_target = target / efficiencyFactor() * children_[i]->productionGuideRate(only_group) / my_guide_rate;
|
||||
children_[i]->applyProdGroupControl(control_mode, child_target, false);
|
||||
children_[i]->applyProdGroupControl(control_mode, child_target, only_group);
|
||||
}
|
||||
prodSpec().control_mode_ = ProductionSpecification::FLD;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user