From 33e3102983287345c62c1158f839351add02fab5 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Mon, 21 Dec 2020 13:51:21 +0100 Subject: [PATCH] output stopped wells --- opm/simulators/wells/WellState.hpp | 2 +- opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/WellState.hpp b/opm/simulators/wells/WellState.hpp index 2897e8a1d..eaf49696e 100644 --- a/opm/simulators/wells/WellState.hpp +++ b/opm/simulators/wells/WellState.hpp @@ -244,7 +244,7 @@ namespace Opm data::Wells dw; for( const auto& itr : this->wellMap_ ) { const auto well_index = itr.second[ 0 ]; - if (this->status_[well_index] != Well::Status::OPEN) + if (this->status_[well_index] == Well::Status::SHUT) continue; const auto& pwinfo = *parallel_well_info_[well_index]; diff --git a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp index 8bcdb05dc..761b2fc42 100644 --- a/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp +++ b/opm/simulators/wells/WellStateFullyImplicitBlackoil.hpp @@ -569,7 +569,7 @@ namespace Opm for( const auto& wt : this->wellMap() ) { const auto w = wt.second[ 0 ]; const auto& pwinfo = *parallel_well_info_[w]; - if ((this->status_[w] != Well::Status::OPEN) || !pwinfo.isOwner()) + if ((this->status_[w] == Well::Status::SHUT) || !pwinfo.isOwner()) continue; auto& well = res.at( wt.first );