MPIX_Nodecart_shift
Returns the shifted source and destination ranks, given a shift direction and amount
Synopsis
int MPIX_Nodecart_shift(MPI_Comm comm, int direction, int disp,
int *rank_sources, int *rank_dest)
Input Parameters
- comm
- communicator with Cartesian structure (handle)
- direction
- coordinate dimension of shift (integer)
- disp
- displacement (> 0: upwards shift, < 0: downwards shift) (integer)
Output Parameters
- rank_source
- rank of source process (integer)
- rank_dest
- rank of destination process (integer)
Notes
The direction argument is in the range [0,n-1] for an n-dimensional
Cartesian mesh.