Fix distributed WellInterface::checkMaxRatioLimitCompletions

Not all connections are local, hence we need a sum across all processes
computing for this well.
This commit is contained in:
Markus Blatt 2020-11-12 15:53:21 +01:00
parent 6eb835c98e
commit 0d6c39be2f

View File

@ -855,6 +855,7 @@ namespace Opm
}
} // end of for (const int c : conns)
parallel_well_info_.communication().sum(completion_rates.data(), completion_rates.size());
const double ratio_completion = ratioFunc(completion_rates, phaseUsage());
if (ratio_completion > max_ratio_completion) {