mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add function WellState::updateStatus()
This commit is contained in:
parent
43925ae4f2
commit
90a9ed49a2
@ -239,6 +239,22 @@ namespace Opm
|
||||
this->thp_[well_index] = 0;
|
||||
}
|
||||
|
||||
void updateStatus(int well_index, Well::Status status) {
|
||||
switch (status) {
|
||||
case Well::Status::OPEN:
|
||||
this->openWell(well_index);
|
||||
break;
|
||||
case Well::Status::SHUT:
|
||||
this->shutWell(well_index);
|
||||
break;
|
||||
case Well::Status::STOP:
|
||||
this->stopWell(well_index);
|
||||
break;
|
||||
default:
|
||||
throw std::logic_error("Invalid well status");
|
||||
}
|
||||
}
|
||||
|
||||
virtual data::Wells
|
||||
report(const PhaseUsage& pu,
|
||||
const int* globalCellIdxMap,
|
||||
|
Loading…
Reference in New Issue
Block a user