mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 12:06:54 -06:00
Fixes StandardWell::updateProductivityIndex for distributed wells.
This commit is contained in:
parent
12f5a6aaff
commit
4dff6fb168
@ -2281,6 +2281,12 @@ namespace Opm
|
||||
connPI += np;
|
||||
}
|
||||
|
||||
// Sum with communication in case of distributed well.
|
||||
const auto& comm = this->parallel_well_info_.communication();
|
||||
if (comm.size() > 1)
|
||||
{
|
||||
comm.sum(wellPI, np);
|
||||
}
|
||||
assert (static_cast<int>(subsetPerfID) == this->number_of_perforations_ &&
|
||||
"Internal logic error in processing connections for PI/II");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user