MPI_Cart_create

--- Makes a new communicator to which topology information has been attached

Input Parameters

comm_old
input communicator (handle)
ndims
number of dimensions of cartesian grid (integer)
dims
integer array of size ndims specifying the number of processes in each dimension
periods
logical array of size ndims specifying whether the grid is periodic (true ) or not (false ) in each dimension
reorder
ranking may be reordered (true ) or not (false ) (logical)

Output Parameter

comm_cart
communicator with new cartesian topology (handle)

Algorithm

We ignore the periods and reorder info currently.

Synopsis


#include "mpi.h"
int MPI_Cart_create ( comm_old, ndims, dims, periods, reorder, comm_cart )
MPI_Comm  comm_old;
int       ndims;     
int      *dims;     
int      *periods;
int       reorder;
MPI_Comm *comm_cart;

Location: cart_create.c