mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-11 17:45:33 -06:00
Accumulate Dissolved Gas and Vaporized Oil Flow Rates Across Ranks
This is needed to get consistent estimates for the summary vectors * {F,G,W}OP{R,T}{F,S} -- Free/Vaporized Oil Production * {F,G,W}GP{R,T}{F,S} -- Free/Dissolved Gas Production in the case of distributed wells. Thanks to [at]blattms for the suggested fix.
This commit is contained in:
parent
3e4e62bc4f
commit
abf92eed52
@ -467,6 +467,14 @@ namespace Opm
|
||||
// Update the connection
|
||||
this->connectionRates_ = connectionRates;
|
||||
|
||||
// Accumulate dissolved gas and vaporized oil flow rates across all
|
||||
// ranks sharing this well (this->index_of_well_).
|
||||
{
|
||||
const auto& comm = this->parallel_well_info_.communication();
|
||||
ws.dissolved_gas_rate = comm.sum(ws.dissolved_gas_rate);
|
||||
ws.vaporized_oil_rate = comm.sum(ws.vaporized_oil_rate);
|
||||
}
|
||||
|
||||
// accumulate resWell_ and invDuneD_ in parallel to get effects of all perforations (might be distributed)
|
||||
wellhelpers::sumDistributedWellEntries(this->invDuneD_[0][0], this->resWell_[0],
|
||||
this->parallel_well_info_.communication());
|
||||
|
Loading…
Reference in New Issue
Block a user