Skip to content

Commit a445f9a

Browse files
committed
fix parallel tweak
1 parent ff29a19 commit a445f9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util_parallel.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ _mpi_rank() = nothing
4949

5050
end
5151

52-
_mpi_rank() = MPI.Comm_rank(MPI.COMM_WORLD)
52+
_mpi_rank() = MPI.Initialized() ? MPI.Comm_rank(MPI.COMM_WORLD) : nothing
5353

5454
end
5555

0 commit comments

Comments
 (0)