Call SingleWellState::update_targets for ACTIONX affected wells

This commit is contained in:
Joakim Hove
2021-11-01 08:49:46 +01:00
parent 869de90b56
commit fd5640774b
5 changed files with 15 additions and 3 deletions

View File

@@ -1447,7 +1447,8 @@ actionOnBrokenConstraints(const Group& group,
void
BlackoilWellModelGeneric::
updateEclWells(const int timeStepIdx,
const std::unordered_set<std::string>& wells)
const std::unordered_set<std::string>& wells,
const SummaryState& st)
{
for (const auto& wname : wells) {
auto well_iter = std::find_if(this->wells_ecl_.begin(), this->wells_ecl_.end(),
@@ -1476,6 +1477,7 @@ updateEclWells(const int timeStepIdx,
ws.updateStatus( well.getStatus() );
ws.reset_connection_factors(pd);
ws.update_targets(well, st);
this->prod_index_calc_[well_index].reInit(well);
}
}