MPI_Cart_map
--- Maps process to Cartesian topology information
Input Parameters
- comm
- input communicator (handle)
- ndims
- number of dimensions of cartesian structure (integer)
- dims
- integer array of size ndims specifying the number of processes in each coordinate direction
- periods
- logical array of size ndims specifying the periodicity specification in each coordinate direction
Output Parameter
- newrank
- reordered rank of the calling process; MPI_UNDEFINED if calling process does not belong to grid (integer)
Synopsis
#include "mpi.h"
int MPI_Cart_map ( comm_old, ndims, dims, periods, newrank )
MPI_Comm comm_old;
int ndims;
int *dims;
int *periods;
int *newrank;
Location: cart_map.c