mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use enum Well::Status to indicate well status instead of bool
This commit is contained in:
committed by
Bård Skaflestad
parent
0468b2eee6
commit
9662d4019e
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user