mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
4fcbd16962
commit
b60439c564
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user