diff --git a/src/loMach.cpp b/src/loMach.cpp index f0bcade30..494d2b07f 100644 --- a/src/loMach.cpp +++ b/src/loMach.cpp @@ -344,7 +344,7 @@ void LoMachSolver::solveBegin() { std::vector flow_screen_values; flow_->screenValues(flow_screen_values); - double max_cfl; + double max_cfl = -1; if (loMach_opts_.ts_opts_.constant_dt_ > 0.0) { max_cfl = computeCFL(); } @@ -429,7 +429,7 @@ void LoMachSolver::solveStep() { std::vector flow_screen_values; flow_->screenValues(flow_screen_values); - double max_cfl; + double max_cfl = -1; if (loMach_opts_.ts_opts_.constant_dt_ > 0.0) { max_cfl = computeCFL(); }