Skip to content

Commit 35fb9d2

Browse files
committed
No output if all ranks use the reducer strategy.
1 parent b7c604c commit 35fb9d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void CFVMFlowSolverBase<V, R>::HybridParallelInitialization(const CConfig& confi
351351
unsigned long minColoredEdgeColorGroupSize = 1 << 30;
352352
SU2_MPI::Reduce(&coloredEdgeColorGroupSize, &minColoredEdgeColorGroupSize, 1, MPI_UNSIGNED_LONG, MPI_MIN, MASTER_NODE, SU2_MPI::GetComm());
353353

354-
if (SU2_MPI::GetRank() == MASTER_NODE) {
354+
if (SU2_MPI::GetRank() == MASTER_NODE && numRanksUsingReducer != SU2_MPI::GetSize()) {
355355
cout << "Among the ranks that use edge coloring,\n"
356356
<< " the minimum efficiency is " << minColoredParallelEff << ",\n"
357357
<< " the maximum number of colors is " << maxColoredNumColors << ",\n"

0 commit comments

Comments
 (0)