[mpich-discuss] change the rank ordering

Rob Ross rross at mcs.anl.gov
Fri Jul 3 15:42:49 CDT 2009


I think this would handle reversing the ranks:

   MPI_Comm_rank(comm, myrank);
   myrank *= -1;
   MPI_Comm_split(comm, 0, myrank, &newcomm);

Rob

On Jul 3, 2009, at 3:31 PM, Rolf Kuiper wrote:

> Hi MPICH-users,
>
> to merge to applications I have to create a communicator with  
> coordinates in a reversed ordering of the coordinates than the  
> default in MPI.


More information about the mpich-discuss mailing list