seqChangeOrder

Change the order in which processes proceed through a sequential section

Synopsis

void seqChangeOrder( MPI_Comm comm, int prev, int next )

Input Parameters

comm
The communicator containing all processes for the sequential section
prev
The rank of the previous process
next
The rank of the next process

Notes

This routine changes the order in which the processes in comm proceed in a sequential section begun with seqBegin. While not a collective routine, it is the users' responsibility to ensure that the specification of prev and next contains on cycles and all processes are reachable.

The process for which prev is MPI_PROC_NULL goes first; the last process must have MPI_PROC_NULL for the next value.