LAM/MPI logo

MPI binding for MPI_CART_RANK

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

Neutral Binding

MPI_CART_RANK(comm, coords, rank)
[ IN comm] communicator with cartesian structure (handle)
[ IN coords] integer array (of size ndims) specifying the cartesian coordinates of a process
[ OUT rank] rank of specified process (integer)


C Binding

int MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank)

FORTRAN Binding

MPI_CART_RANK(COMM, COORDS, RANK, IERROR)
INTEGER COMM, COORDS(*), RANK, IERROR

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

int Cartcomm::Get_cart_rank(const int coords[]) const