Can anyone explain the following command clearly
MPI_cart_shift (MPI_Comm comm., int direction, int displ, int *src, int *dest)
Actually this routine finds the resulting source and destination ranks given the shift direction and displ
Please explain me clearly what happens when direction=1 and 0 and also disp < 0, >0 or 0
Take the example (let 4 processors are arranged in a 2 x 2 grid with ranks 0 for P(0,0),
Rank 1 for P(0,1), rank 2 for P(1,0), rank3 for P(1,1))
If rank 0 is the calling process then please explain me the following commands
1) MPI_Cart_shift(comm., 1, -1, &rsrc, &rdest);
2) MPI_Cart_shift(comm., 0, -1, &rsrc, &rdest);
What r the soruce and dest rank in both the cases if rank 0 is the calling process in the 2 x 2 grid
(0,0)
0
(0,1)
1
(1,0)
2
(1,1)
3
---------------------------------
Heres a new way to find what you're looking for - Yahoo! Answers
|