We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff29a19 commit a445f9aCopy full SHA for a445f9a
src/util_parallel.jl
@@ -49,7 +49,7 @@ _mpi_rank() = nothing
49
50
end
51
52
- _mpi_rank() = MPI.Comm_rank(MPI.COMM_WORLD)
+ _mpi_rank() = MPI.Initialized() ? MPI.Comm_rank(MPI.COMM_WORLD) : nothing
53
54
55
0 commit comments