output stopped wells

This commit is contained in:
Tor Harald Sandve 2020-12-21 13:51:21 +01:00
parent eb4aabc71a
commit 33e3102983
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ namespace Opm
data::Wells dw; data::Wells dw;
for( const auto& itr : this->wellMap_ ) { for( const auto& itr : this->wellMap_ ) {
const auto well_index = itr.second[ 0 ]; const auto well_index = itr.second[ 0 ];
if (this->status_[well_index] != Well::Status::OPEN) if (this->status_[well_index] == Well::Status::SHUT)
continue; continue;
const auto& pwinfo = *parallel_well_info_[well_index]; const auto& pwinfo = *parallel_well_info_[well_index];

View File

@ -569,7 +569,7 @@ namespace Opm
for( const auto& wt : this->wellMap() ) { for( const auto& wt : this->wellMap() ) {
const auto w = wt.second[ 0 ]; const auto w = wt.second[ 0 ];
const auto& pwinfo = *parallel_well_info_[w]; 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; continue;
auto& well = res.at( wt.first ); auto& well = res.at( wt.first );