Skip to content

Commit 1558da4

Browse files
authored
Merge pull request #103 from aelligp/master
Change deprecated MPI call
2 parents 7b81bb1 + e366a01 commit 1558da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init_global_grid.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function init_global_grid(nx::Integer, ny::Integer, nz::Integer; dimx::Integer=0
9696
if (!MPI.Initialized()) error("MPI has not been initialized beforehand. Remove the argument 'init_MPI=false'."); end # Ensure that MPI is always initialized after init_global_grid().
9797
end
9898
nprocs = MPI.Comm_size(comm);
99-
MPI.Dims_create!(nprocs, dims);
99+
dims .= MPI.Dims_create!(nprocs, dims);
100100
comm_cart = MPI.Cart_create(comm, dims, periods, reorder);
101101
me = MPI.Comm_rank(comm_cart);
102102
coords = MPI.Cart_coords(comm_cart);

0 commit comments

Comments
 (0)