MPI_Cart_coords

--- Determines process coords in cartesian topology given rank in group

Input Parameters

comm
communicator with cartesian structure (handle)
rank
rank of a process within group of comm (integer)
maxdims
length of vector coord in the calling program (integer)

Output Parameter

coords
integer array (of size ndims ) containing the cartesian coordinates of specified process (integer)

Synopsis


#include "mpi.h"
int MPI_Cart_coords ( comm, rank, maxdims, coords )
MPI_Comm  comm;
int       rank;
int       maxdims;
int      *coords;

Location: cart_coords.c