Create_cart raises error
Issue #103
resolved
Dear, I am running fairly simple code to create Cartesian grid communicator on python 2.7 from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() cart_comm = comm.Create_cart([10,10],periods=[True,True],reorder=False) rank = cart_comm.Get_rank() size=cart_comm.Get_size()
this raises an error
File "mpi4py/MPI/Comm.pyx", line 1319, in mpi4py.MPI.Intracomm.Create_cart
Exception: MPI_ERR_ARG: invalid argument of some other kind
Any ideas on how to resolve this
Comments (3)
-
-
reporter Thanks it works with what you suggested my mistake in understanding the function.
-
reporter - changed status to resolved
Thanks it works with what you suggested my mistake in understanding the function.
- Log in to comment
How are you running your code? Are you using
mpiexec
? Can you paste the full command line? You have to execute with exactly 100 MPI processes for that example to work.