Merge pull request #1137 from GitPaean/group_ebos_vrep

set the VREP control as current control when applying VREP control
This commit is contained in:
Atgeirr Flø Rasmussen authored and GitHub committed 2017-01-27 11:11:42 +01:00
commit 5aa5ac89c5
1 file changed
+1
+1
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);