Skip to content

Commit

Permalink
Merge pull request #103 from aelligp/master
Browse files Browse the repository at this point in the history
Change deprecated MPI call
  • Loading branch information
omlins authored Feb 14, 2025
2 parents 7b81bb1 + e366a01 commit 1558da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init_global_grid.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function init_global_grid(nx::Integer, ny::Integer, nz::Integer; dimx::Integer=0
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().
end
nprocs = MPI.Comm_size(comm);
MPI.Dims_create!(nprocs, dims);
dims .= MPI.Dims_create!(nprocs, dims);
comm_cart = MPI.Cart_create(comm, dims, periods, reorder);
me = MPI.Comm_rank(comm_cart);
coords = MPI.Cart_coords(comm_cart);
Expand Down

0 comments on commit 1558da4

Please sign in to comment.