Merge pull request #2978 from joakim-hove/use-well-status

Use enum Well::Status for well status in WellState
This commit is contained in:
Atgeirr Flø Rasmussen
2020-12-10 12:43:40 +01:00
committed by GitHub
3 changed files with 19 additions and 8 deletions

View File

@@ -762,7 +762,7 @@ namespace Opm {
continue;
} else {
// stopped wells are added to the container but marked as stopped
well_state_.thp()[w] = 0.;
well_state_.stopWell(w);
wellIsStopped = true;
}
}
@@ -809,7 +809,7 @@ namespace Opm {
}
if (well_status == Well::Status::STOP) {
well_state_.thp()[w] = 0.;
well_state_.stopWell(w);
wellIsStopped = true;
}