LAM/MPI logo

MPI binding for MPI_CART_GET

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

Neutral Binding

MPI_CART_GET(comm, maxdims, dims, periods, coords)
[ IN comm] communicator with cartesian structure (handle)
[ IN maxdims] length of vectors dims, periods, and coords in the calling program (integer)
[ OUT dims] number of processes for each cartesian dimension (array of integer)
[ OUT periods] periodicity ( true/ false) for each cartesian dimension (array of logical)
[ OUT coords] coordinates of calling process in cartesian structure (array of integer)


C Binding

int MPI_Cart_get(MPI_Comm comm, int maxdims, int *dims, int *periods, int *coords)

FORTRAN Binding

MPI_CART_GET(COMM, MAXDIMS, DIMS, PERIODS, COORDS, IERROR)
INTEGER COMM, MAXDIMS, DIMS(*), COORDS(*), IERROR
LOGICAL PERIODS(*)

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

void Cartcomm::Get_topo(int maxdims, int dims[], bool periods[], int coords[]) const