avoid dead store

This commit is contained in:
Arne Morten Kvarving
2023-06-21 08:59:16 +02:00
parent c8924d67ca
commit 3c566a9e4e
2 changed files with 8 additions and 8 deletions

View File

@@ -121,7 +121,7 @@ assembleControlEq(const WellState& well_state,
} else if (well_.isInjector() ) {
// Find scaling factor to get injection rate,
const InjectorType injectorType = inj_controls.injector_type;
double scaling = 1.0;
double scaling;
const auto& pu = well_.phaseUsage();
switch (injectorType) {
case InjectorType::WATER: