Purpose
Translates task rank in a communicator into cartesian task coordinates.
C synopsis
#include <mpi.h> MPI_Cart_coords(MPI_Comm comm,int rank,int maxdims,int *coords);
C++ synopsis
#include mpi.h void MPI::Cartcomm::Get_coords(int rank, int maxdims, int coords[]) const;
FORTRAN synopsis
include 'mpif.h' or use mpi MPI_CART_COORDS(INTEGER COMM,INTEGER RANK,INTEGER MAXDIMS, INTEGER COORDS(*),INTEGER IERROR)
Parameters
Description
This subroutine translates task rank in a communicator into task coordinates.
Notes
Task coordinates in a cartesian structure begin their numbering at 0. Row-major numbering is always used for the tasks in a cartesian structure.
Errors
Related information