Cartesian Mapping
MPI_Cart_rank
MPI_Cart_rank maps process grid coordinates to ranks.
C
int MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank)
Fortran
MPI_CART_RANK(COMM, COORDS, RANK, IERROR)
INTEGER COMM, COORDS(*), RANK, IERROR
MPI_Cart_coords
MPI_Cart_coords maps ranks to process grid coordinates.
C
int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int *coords)
Fortran
MPI_CART_COORDS(COMM, RANK, MAXDIMS, COORDS, IERROR)
INTEGER COMM, RANK, MAXDIMS, COORDS(*), IERROR