Subdividing (con't)


Up: Collective Communications in MPI Next: Manipulating Groups Previous: Subdividing a communicator

Similarly, to form groups of columns,

use


MPI_Comm_split( oldcomm, column, 0, &newcomm2 ); 
To maintain the order by rank, use
MPI_Comm_rank( oldcomm, &rank ); 
MPI_Comm_split( oldcomm, column, rank, &newcomm2 ); 



Up: Collective Communications in MPI Next: Manipulating Groups Previous: Subdividing a communicator