mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -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:
@@ -855,6 +855,7 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
} // end of for (const int c : conns)
|
} // 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());
|
const double ratio_completion = ratioFunc(completion_rates, phaseUsage());
|
||||||
|
|
||||||
if (ratio_completion > max_ratio_completion) {
|
if (ratio_completion > max_ratio_completion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user