mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use SingleWellState for production and injection control
This commit is contained in:
@@ -1235,9 +1235,8 @@ bool
|
||||
GasLiftSingleWellGeneric::OptimizeState::
|
||||
checkThpControl()
|
||||
{
|
||||
const int index = this->parent.well_state_.wellIndex(this->parent.well_name_);
|
||||
const Well::ProducerCMode& control_mode
|
||||
= this->parent.well_state_.currentProductionControl(index);
|
||||
const int well_index = this->parent.well_state_.wellIndex(this->parent.well_name_);
|
||||
const Well::ProducerCMode& control_mode = this->parent.well_state_.well(well_index).production_cmode;
|
||||
return control_mode == Well::ProducerCMode::THP;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user