#include "mpi.h" int MPI_Cart_shift ( comm, direction, displ, source, dest ) MPI_Comm comm; int direction; int displ; int *source; int *dest;
comm | communicator with cartesian structure (handle)
| |
direction | coordinate dimension of shift (integer)
| |
disp | displacement (> 0: upwards shift, < 0: downwards shift) (integer)
|
rank_source | rank of source process (integer)
| |
rank_dest | rank of destination process (integer)
|