mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #3128 from totto82/fixTarget
reset target from wconprod and wconinje
This commit is contained in:
commit
f980ff5f77
@ -238,13 +238,11 @@ namespace Opm
|
|||||||
// thp
|
// thp
|
||||||
thp()[ newIndex ] = prevState->thp()[ oldIndex ];
|
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 new target is set using WCONPROD, WCONINJE etc. we change to the new control.
|
||||||
//if (effective_events_occurred_[w]) {
|
if (!effective_events_occurred_[w]) {
|
||||||
// continue;
|
current_injection_controls_[ newIndex ] = prevState->currentInjectionControls()[ oldIndex ];
|
||||||
//}
|
current_production_controls_[ newIndex ] = prevState->currentProductionControls()[ oldIndex ];
|
||||||
|
}
|
||||||
current_injection_controls_[ newIndex ] = prevState->currentInjectionControls()[ oldIndex ];
|
|
||||||
current_production_controls_[ newIndex ] = prevState->currentProductionControls()[ oldIndex ];
|
|
||||||
|
|
||||||
// wellrates
|
// wellrates
|
||||||
for( int i=0, idx=newIndex*np, oldidx=oldIndex*np; i<np; ++i, ++idx, ++oldidx )
|
for( int i=0, idx=newIndex*np, oldidx=oldIndex*np; i<np; ++i, ++idx, ++oldidx )
|
||||||
|
Loading…
Reference in New Issue
Block a user