Extract functionality to update target rates to SingleWellState

This commit is contained in:
Joakim Hove
2021-10-31 15:59:41 +01:00
parent 5a986ee430
commit 05317e1d72
8 changed files with 170 additions and 130 deletions

View File

@@ -1239,7 +1239,7 @@ updateEclWells(const int timeStepIdx,
}
auto& ws = this->wellState().well(well_index);
this->wellState().updateStatus(well_index, well.getStatus());
ws.updateStatus( well.getStatus() );
ws.reset_connection_factors(pd);
this->prod_index_calc_[well_index].reInit(well);
}