mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-25 15:10:09 -05:00
Merge pull request #6833 from hakonhagland/fix_ac_comm_sum
Fix missing communication in auto choke underperformance check
This commit is contained in:
1 file changed
+1
@@ -1705,6 +1705,7 @@ GroupStateHelper<Scalar, IndexTraits>::isAutoChokeGroupUnderperforming_(const Gr
|
||||
for (int phase_pos = 0; phase_pos < num_phases; ++phase_pos) {
|
||||
rates[phase_pos] = this->sumWellSurfaceRates(group, phase_pos, /*injector=*/false);
|
||||
}
|
||||
this->comm_.sum(rates.data(), rates.size());
|
||||
const Scalar current_rate = tcalc.calcModeRateFromRates(rates);
|
||||
|
||||
// If underperforming, wells should be excluded from GCW count
|
||||
|
||||
Reference in new issue
Block a user