mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Sum well rates in computeWellRatesWithBhp for distributed wells.
This needs summation over all procs that share the well as it needs information from all perforations. Some of them might reside on other processes.
This commit is contained in:
@@ -2562,6 +2562,7 @@ namespace Opm
|
|||||||
well_flux[ebosCompIdxToFlowCompIdx(p)] += cq_s[p].value();
|
well_flux[ebosCompIdxToFlowCompIdx(p)] += cq_s[p].value();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this->parallel_well_info_.communication().sum(well_flux.data(), well_flux.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user