Use SingleWellState to manage well surface rates

This commit is contained in:
Joakim Hove
2021-08-24 11:49:03 +02:00
parent 8937c9cba9
commit 755de65eb4
16 changed files with 136 additions and 146 deletions

View File

@@ -300,7 +300,8 @@ GasLiftGroupInfo::
getProducerWellRates_(int well_index)
{
const auto& pu = this->phase_usage_;
const auto& wrate = this->well_state_.wellRates(well_index);
const auto& ws= this->well_state_.well(well_index);
const auto& wrate = ws.surface_rates;
const auto oil_rate = pu.phase_used[Oil]
? -wrate[pu.phase_pos[Oil]]