Avoid unintended switch fall-through.

Added break statements to all cases, for consistency.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-08-19 14:15:50 +02:00
parent 3ae39f74e5
commit 735feef0ab

View File

@ -968,11 +968,13 @@ namespace {
switch (ctrl_type) { switch (ctrl_type) {
case BHP: case BHP:
broken = bhp.value()[well] > target; broken = bhp.value()[well] > target;
break;
case RESERVOIR_RATE: // Intentional fall-through case RESERVOIR_RATE: // Intentional fall-through
case SURFACE_RATE: case SURFACE_RATE:
broken = rateToCompare(well_phase_flow_rate, broken = rateToCompare(well_phase_flow_rate,
well, num_phases, distr) > target; well, num_phases, distr) > target;
break;
} }
} }
break; break;
@ -991,6 +993,7 @@ namespace {
// (as for injection). // (as for injection).
broken = rateToCompare(well_phase_flow_rate, broken = rateToCompare(well_phase_flow_rate,
well, num_phases, distr) < target; well, num_phases, distr) < target;
break;
} }
} }
break; break;