Skip to content

Commit 39168b5

Browse files
committed
Add const.
1 parent 90bc63b commit 39168b5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,15 @@ void CFVMFlowSolverBase<V, R>::HybridParallelInitialization(const CConfig& confi
339339
}
340340
}
341341

342-
su2double coloredParallelEff = ReducerStrategy ? 1.0 : parallelEff;
342+
const su2double coloredParallelEff = ReducerStrategy ? 1.0 : parallelEff;
343343
su2double minColoredParallelEff = 1.0;
344344
SU2_MPI::Reduce(&coloredParallelEff, &minColoredParallelEff, 1, MPI_DOUBLE, MPI_MIN, MASTER_NODE, SU2_MPI::GetComm());
345345

346-
unsigned long coloredNumColors = ReducerStrategy ? 0 : coloring.getOuterSize();
346+
const unsigned long coloredNumColors = ReducerStrategy ? 0 : coloring.getOuterSize();
347347
unsigned long maxColoredNumColors = 0;
348348
SU2_MPI::Reduce(&coloredNumColors, &maxColoredNumColors, 1, MPI_UNSIGNED_LONG, MPI_MAX, MASTER_NODE, SU2_MPI::GetComm());
349349

350-
unsigned long coloredEdgeColorGroupSize = ReducerStrategy ? 1 << 30 : geometry.GetEdgeColorGroupSize();
350+
const unsigned long coloredEdgeColorGroupSize = ReducerStrategy ? 1 << 30 : geometry.GetEdgeColorGroupSize();
351351
unsigned long minColoredEdgeColorGroupSize = 1 << 30;
352352
SU2_MPI::Reduce(&coloredEdgeColorGroupSize, &minColoredEdgeColorGroupSize, 1, MPI_UNSIGNED_LONG, MPI_MIN, MASTER_NODE, SU2_MPI::GetComm());
353353

0 commit comments

Comments
 (0)