set the VREP control as current control when applying VREP control

for the first time

Not sure it is always the better things to do here, while it can help
the consistence of the two current controls in the well_controls and
well_state.
This commit is contained in:
Kai Bao 2017-01-25 11:44:39 +01:00
parent 4fcbd16962
commit b60439c564

View File

@ -1223,6 +1223,7 @@ namespace Opm
group_control_index_ = well_controls_get_num(wells_->ctrls[self_index_]) - 1;
// it should only apply for nodes with GRUP injeciton control
individual_control_ = false;
set_current_control(self_index_, group_control_index_, wells_);
} else {
well_controls_iset_type(wells_->ctrls[self_index_] , group_control_index_ , RESERVOIR_RATE);
well_controls_iset_target(wells_->ctrls[self_index_] , group_control_index_ , ntarget);