Create_cart raises error

Issue #103 resolved
Patel Ravi created an issue

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)

  1. Lisandro Dalcin

    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.

  2. Log in to comment