mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-13 09:51:57 -06: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:
parent
6eb835c98e
commit
0d6c39be2f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user