From c09797355d862190c480823b77491da5551f1285 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 10 Dec 2020 21:28:45 +0100 Subject: [PATCH] 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. --- opm/simulators/wells/StandardWell_impl.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index ab94038c9..7516dec46 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -2562,6 +2562,7 @@ namespace Opm well_flux[ebosCompIdxToFlowCompIdx(p)] += cq_s[p].value(); } } + this->parallel_well_info_.communication().sum(well_flux.data(), well_flux.size()); }