Fixes StandardWell::updateIPR for distributed wells.

Of course the summation needs to be over all perforations of the
wells, no matter where they reside. Hence we need communication.
This commit is contained in:
Markus Blatt 2020-12-11 09:29:57 +01:00
parent c09797355d
commit fc4a7fa3c1

View File

@ -1676,6 +1676,8 @@ namespace Opm
ipr_b_[ebosCompIdxToFlowCompIdx(p)] += ipr_b_perf[p];
}
}
this->parallel_well_info_.communication().sum(ipr_a_.data(), ipr_a_.size());
this->parallel_well_info_.communication().sum(ipr_b_.data(), ipr_b_.size());
}