Use const for local variables
This commit is contained in:
parent
6324b666c9
commit
fd7723ca61
@ -520,8 +520,8 @@ void productionGroup(const Opm::Schedule& sched,
|
|||||||
*/
|
*/
|
||||||
// default value
|
// default value
|
||||||
iGrp[nwgmax + 5] = -1;
|
iGrp[nwgmax + 5] = -1;
|
||||||
int higher_lev_ctrl = higherLevelProdControlGroupSeqIndex(sched, sumState, group, simStep);
|
const int higher_lev_ctrl = higherLevelProdControlGroupSeqIndex(sched, sumState, group, simStep);
|
||||||
int higher_lev_ctrl_mode = higherLevelProdControlMode(sched, sumState, group, simStep);
|
const int higher_lev_ctrl_mode = higherLevelProdControlMode(sched, sumState, group, simStep);
|
||||||
// Start branching for determining iGrp[nwgmax + 5]
|
// Start branching for determining iGrp[nwgmax + 5]
|
||||||
// use default value if group is not available for group control
|
// use default value if group is not available for group control
|
||||||
if (groupProductionControllable(sched, sumState, group, simStep)) {
|
if (groupProductionControllable(sched, sumState, group, simStep)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user