mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Remove WellMap from WellState
This commit is contained in:
@@ -1235,7 +1235,7 @@ bool
|
||||
GasLiftSingleWellGeneric::OptimizeState::
|
||||
checkThpControl()
|
||||
{
|
||||
const int well_index = this->parent.well_state_.wellIndex(this->parent.well_name_);
|
||||
const int well_index = this->parent.well_state_.index(this->parent.well_name_).value();
|
||||
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