Merge pull request #2996 from totto82/outputStoppedWells

output stopped wells
This commit is contained in:
Bård Skaflestad 2020-12-21 15:22:25 +01:00 committed by GitHub
commit a657f2371a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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];

View File

@ -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 );