Go to the source code of this file.
int CoordOffRank |
( |
Grid * |
grid, |
|
|
int |
dir, |
|
|
int |
poff, |
|
|
MPI_comm * |
cartcomm |
|
) |
| |
Definition at line 30 of file cartcoord.c.
48 MPI_Cart_rank(cartcomm, coords, &rnk);
50 }
int rank_coord
Parallel coordinate in a Cartesian topology.
GetRankCoordinates |
( |
periods |
, |
|
|
nprocs |
, |
|
|
coords |
|
|
) |
| |
void GetRankCoordinates |
( |
int |
periods[3], |
|
|
int |
nprocs[3], |
|
|
int |
coords[3] |
|
) |
| |
Definition at line 6 of file cartcoord.c.
14 int nprocs[3], periods[3], coords[3];
17 MPI_Comm_rank(MPI_COMM_WORLD, &
prank);
19 coords[0] = coords[1] = coords[2] = 0;
20 periods[0] = periods[1] = periods[2] = 0;
21 nprocs[0] = nprocs[1] = nprocs[2] = 0;
24 MPI_Cart_get(cartcomm, 3, nprocs, periods, coords);
25 MPI_Cart_rank(cartcomm, coords, &rank);
int AL_Get_cart_comm(int, MPI_Comm *)