1 | MPI_CART_SUB(comm2d, [F,T], comm2drows) |
2 | Uses the 2 element boolean vector to determine if the ith dim occurs in the subgrid (T for true) or not (F for false). This example returns a handle called comm2drows which will consist of |
3 | sqrt(N) non-overlapping communicators, each of which consists of sqrt(N) column elements. |
4 | Then when we call MPI_Bcast with the communicator comm2drows, the broadcast occurs within the individual row communicators. |