LAM/MPI logo

MPI binding for MPI_CART_MAP

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

Neutral Binding

MPI_CART_MAP(comm, ndims, dims, periods, newrank)
[ IN comm] input communicator (handle)
[ IN ndims] number of dimensions of cartesian structure (integer)
[ IN dims] integer array of size ndims specifying the number of processes in each coordinate direction
[ IN periods] logical array of size ndims specifying the periodicity specification in each coordinate direction
[ OUT newrank] reordered rank of the calling process; MPI_UNDEFINED if calling process does not belong to grid (integer)


C Binding

int MPI_Cart_map(MPI_Comm comm, int ndims, int *dims, int *periods, int *newrank)

FORTRAN Binding

MPI_CART_MAP(COMM, NDIMS, DIMS, PERIODS, NEWRANK, IERROR)
INTEGER COMM, NDIMS, DIMS(*), NEWRANK, IERROR
LOGICAL PERIODS(*)

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

int Cartcomm::Map(int ndims, const int dims[], const bool periods[]) const