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);
48 MPI_Cart_rank(cartcomm, coords, &rnk);
GetRankCoordinates(periods, nprocs, coords)
int CoordOffRank(Grid *grid, int dir, int poff, MPI_comm *cartcomm)
int AL_Get_cart_comm(int, MPI_Comm *)
int rank_coord
Parallel coordinate in a Cartesian topology.