LAM/MPI logo

MPI binding for MPI_CART_CREATE

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just the tutorials

Neutral Binding

MPI_CART_CREATE(comm_old, ndims, dims, periods, reorder, comm_cart)
[ IN comm_old] input communicator (handle)
[ IN ndims] number of dimensions of cartesian grid (integer)
[ IN dims] integer array of size ndims specifying the number of processes in each dimension
[ IN periods] logical array of size ndims specifying whether the grid is periodic ( true) or not ( false) in each dimension
[ IN reorder] ranking may be reordered ( true) or not ( false) (logical)
[ OUT comm_cart] communicator with new cartesian topology (handle)


C Binding

int MPI_Cart_create(MPI_Comm comm_old, int ndims, int *dims, int *periods, int reorder, MPI_Comm *comm_cart)

FORTRAN Binding

MPI_CART_CREATE(COMM_OLD, NDIMS, DIMS, PERIODS, REORDER, COMM_CART, IERROR)
INTEGER COMM_OLD, NDIMS, DIMS(*), COMM_CART, IERROR
LOGICAL PERIODS(*), REORDER

C++ Binding
(in the MPI:: namespace)

Cartcomm Intracomm::Create_cart(int ndims, const int dims[], const bool periods[], bool reorder) const