From c2f59b062903a24d6519202f15ab4aa38b64b395 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 12 Nov 2020 14:18:38 +0100 Subject: [PATCH] Skip temp. reporting of some rates if distributed non-owned wells. In the end of the report each the report from these wells will come from another process, anyway. --- opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp index eb53e673d..6ba2ba424 100644 --- a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp +++ b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp @@ -554,7 +554,8 @@ namespace Opm for( const auto& wt : this->wellMap() ) { const auto w = wt.second[ 0 ]; - if (!this->open_for_output_[w]) + const auto& pwinfo = *parallel_well_info_[w]; + if (!this->open_for_output_[w] || !pwinfo.isOwner()) continue; auto& well = res.at( wt.first );