MPI_Cart_Create(MPI_COMM_WORLD, ndim=2, dims, [T,T], T, comm2d) |
Where dims is a 2-element integer vector giving the number of elements in the 2 dimensions, |
[T,T] is a 2-element vector giving True to wrap the topology in both dimensions, T specifies that it's o.k. to reorder the default rank (from MPI_rank) of the processors in order to achieve a good embedding. |
This returns a handle to the communicator for the new topology in the variable comm2d. |