MPI_CART_SUB(comm2d, [F,T], comm2drows) |
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 |
sqrt(N) non-overlapping communicators, each of which consists of sqrt(N) column elements. |
Then when we call MPI_Bcast with the communicator comm2drows, the broadcast occurs within the individual row communicators. |