mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-15 11:13:11 -06:00
reset target from wconprod and wconinje
This commit is contained in:
parent
2b34dc843c
commit
3a65a7ba22
@ -218,13 +218,11 @@ namespace Opm
|
||||
// thp
|
||||
thp()[ newIndex ] = prevState->thp()[ oldIndex ];
|
||||
|
||||
// Currently this is taken care of by updateWellStateFromTarge. Maybe we should just remove the initialization and just use updateWellStateFromTarget
|
||||
//if (effective_events_occurred_[w]) {
|
||||
// continue;
|
||||
//}
|
||||
|
||||
current_injection_controls_[ newIndex ] = prevState->currentInjectionControls()[ oldIndex ];
|
||||
current_production_controls_[ newIndex ] = prevState->currentProductionControls()[ oldIndex ];
|
||||
// If new target is set using WCONPROD, WCONINJE etc. we change to the new control.
|
||||
if (!effective_events_occurred_[w]) {
|
||||
current_injection_controls_[ newIndex ] = prevState->currentInjectionControls()[ oldIndex ];
|
||||
current_production_controls_[ newIndex ] = prevState->currentProductionControls()[ oldIndex ];
|
||||
}
|
||||
|
||||
// wellrates
|
||||
for( int i=0, idx=newIndex*np, oldidx=oldIndex*np; i<np; ++i, ++idx, ++oldidx )
|
||||
|
Loading…
Reference in New Issue
Block a user