Merge pull request #6833 from hakonhagland/fix_ac_comm_sum

Fix missing communication in auto choke underperformance check
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2026-02-17 14:57:20 +01:00
commit 08c25aebab
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