mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Added missing parallel reduction to computeCurrentWellRates.
This is supposed to be summation over values at all perforations. Hence, it needs a parallel sum.
This commit is contained in:
@@ -4119,6 +4119,11 @@ namespace Opm
|
|||||||
for (int comp = 0; comp < num_components_; ++comp) {
|
for (int comp = 0; comp < num_components_; ++comp) {
|
||||||
well_q_s_noderiv[comp] = well_q_s[comp].value();
|
well_q_s_noderiv[comp] = well_q_s[comp].value();
|
||||||
}
|
}
|
||||||
|
const auto& comm = this->parallel_well_info_.communication();
|
||||||
|
if (comm.size() > 1)
|
||||||
|
{
|
||||||
|
comm.sum(well_q_s_noderiv.data(), well_q_s_noderiv.size());
|
||||||
|
}
|
||||||
return well_q_s_noderiv;
|
return well_q_s_noderiv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user