mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fixes StandardWell::updateProductivityIndex for distributed wells.
This commit is contained in:
@@ -2281,6 +2281,12 @@ namespace Opm
|
|||||||
connPI += np;
|
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_ &&
|
assert (static_cast<int>(subsetPerfID) == this->number_of_perforations_ &&
|
||||||
"Internal logic error in processing connections for PI/II");
|
"Internal logic error in processing connections for PI/II");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user