use rates from privious time-step in the guiderate conversion to reduce oscilation

This commit is contained in:
Tor Harald Sandve
2020-06-24 09:38:18 +02:00
parent 3766f19de3
commit 8e3c124b23

View File

@@ -1266,7 +1266,9 @@ namespace Opm {
WellGroupHelpers::updateReservoirRatesInjectionGroups(fieldGroup, schedule(), reportStepIdx, well_state_nupcol_, well_state_);
WellGroupHelpers::updateGroupProductionRates(fieldGroup, schedule(), reportStepIdx, well_state_nupcol_, well_state_);
WellGroupHelpers::updateWellRates(fieldGroup, schedule(), reportStepIdx, well_state_nupcol_, well_state_);
// We use the rates from the privious time-step to reduce oscilations
WellGroupHelpers::updateWellRates(fieldGroup, schedule(), reportStepIdx, previous_well_state_, well_state_);
well_state_.communicateGroupRates(comm);
// compute wsolvent fraction for REIN wells