Remove WellMap from WellState

This commit is contained in:
Joakim Hove
2021-08-06 13:18:18 +02:00
parent 8f9e7d8e96
commit 5a721b8cd2
6 changed files with 71 additions and 139 deletions

View File

@@ -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;
}