Skip to content

Commit

Permalink
Fix maybe-uninitialized warning from gnu12
Browse files Browse the repository at this point in the history
  • Loading branch information
trevilo committed May 29, 2024
1 parent e8e6769 commit 5b0e596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loMach.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ void LoMachSolver::solveBegin() {
std::vector<double> 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();
}
Expand Down Expand Up @@ -429,7 +429,7 @@ void LoMachSolver::solveStep() {
std::vector<double> 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();
}
Expand Down

0 comments on commit 5b0e596

Please sign in to comment.