mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-16 10:52:01 -05:00
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:
1 parent
6eb835c98e
commit
0d6c39be2f
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user