MPI_Intercomm_merge
--- Creates an intracommuncator from an intercommunicator
Input Parameters
- comm
- Intercommunicator
- high
- Used to order the groups of the two intracommunicators within comm
when creating the new communicator.
Output Parameter
- comm_out
- Created intracommunicator
Algorithm
- 1)
- Allocate two contexts
- 2)
- Local and remote group leaders swap high values
- 3)
- Determine the high value.
- 4)
- Merge the two groups and make the intra-communicator
Synopsis
#include "mpi.h"
int MPI_Intercomm_merge ( comm, high, comm_out )
MPI_Comm comm;
int high;
MPI_Comm *comm_out;
Location: ic_merge.c