You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
s_mpi_allreduce_min/max leave var_glb undefined in non-MPI builds #1966
In builds without MPI, s_mpi_allreduce_min and s_mpi_allreduce_max (src/common/m_mpi_common.fpp) leave their intent(out) result var_glb undefined. The MPI_ALLREDUCE call is wrapped in #ifdef MFC_MPI and has no #else var_glb = var_loc. Callers on a single-process build then read garbage.
s_mpi_allreduce_sum had the same gap; #1963 adds the #else branch for it. s_mpi_allreduce_min_vec and s_mpi_reduce_int_sum already have the fallback.
Fix
Add the same branch to s_mpi_allreduce_min and s_mpi_allreduce_max:
Activity