Skip to content

Commit 05889cd

Browse files
Merge pull request #48 from fverdugo/fix_in_prun_debug
Fix in prun_debug. Namely prod instead of length must be used.
2 parents 2a06ba4 + 492de32 commit 05889cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MPIBackend.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function prun_debug(driver::Function,b::MPIBackend,nparts)
4141
if !MPI.Initialized()
4242
MPI.Init()
4343
end
44-
if (length(nparts) != 1)
44+
if (prod(nparts) != 1)
4545
MPI.Abort(MPI.COMM_WORLD,0)
4646
end
4747
part = get_part_ids(b,nparts)

0 commit comments

Comments
 (0)