mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Trying always to give a valid control when initing WellState.
Without the fix, when we specify GRUP control for WCONINJE, the control mode will be initialized to be -1.
This commit is contained in:
parent
8474ff2895
commit
75e0ff0018
@ -166,8 +166,10 @@ namespace Opm
|
|||||||
// If the set of controls have changed, this may not be identical
|
// If the set of controls have changed, this may not be identical
|
||||||
// to the last control, but it must be a valid control.
|
// to the last control, but it must be a valid control.
|
||||||
currentControls()[ newIndex ] = old_control_index;
|
currentControls()[ newIndex ] = old_control_index;
|
||||||
|
} else {
|
||||||
|
assert(well_controls_get_num(wells->ctrls[w]) > 0);
|
||||||
|
currentControls()[ newIndex ] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user