Use enum Well::Status to indicate well status instead of bool

This commit is contained in:
Joakim Hove
2020-12-09 10:44:24 +01:00
committed by Bård Skaflestad
parent 0468b2eee6
commit 9662d4019e
6 changed files with 15 additions and 14 deletions

View File

@@ -307,14 +307,15 @@ namespace Opm
DeferredLogger& deferred_logger) const;
void stopWell() {
wellIsStopped_ = true;
this->wellStatus_ = Well::Status::STOP;
}
void openWell() {
wellIsStopped_ = false;
this->wellStatus_ = Well::Status::OPEN;
}
bool wellIsStopped() const {
return wellIsStopped_;
return this->wellStatus_ == Well::Status::STOP;
}
void setWsolvent(const double wsolvent);
@@ -419,7 +420,7 @@ namespace Opm
std::vector<RateVector> connectionRates_;
bool wellIsStopped_;
Well::Status wellStatus_;
double wsolvent_;