NAME
MMPPIIIInntteerrccoommmmmmeerrggee - Creates an intracommunicator from an intercommu-
nicator. SSYYNNTTAAXX CC SSyynnttaaxx#include
int MPIIntercommmerge(MPIComm intercomm, int high, MPIComm *newintracomm FFoorrttrraann SSyynnttaaxx INCLUDE 'mpif.h'MPIINTERCOMMMERGE(INTERCOMM, HIGH, NEWINTRACOMM, IERROR)
INTEGER INTERCOMM, NEWINTRACOMM, IERROR
LOGICAL HIGH CC++++ SSyynnttaaxx#include
Intracomm Intercomm::Merge(bool high) const IINNPPUUTT PPAARRAAMMEETTEERRSS intercomm Intercommunicator (type indicator). high Used to order the groups of the two intracommunicators within comm when creating the new communicator (type indicator). OOUUTTPPUUTT PPAARRAAMMEETTEERRSS newintracomm Created intracommunicator (type indicator).IERROR Fortran only: Error status (integer).
DESCRIPTION
This function creates an intracommunicator from the union of the two groups that are associated with intercomm. All processes should provide the same high value within each of the two groups. If processes in one group provide the value high = false and processes in the other group provide the value high = true, then the union orders the "low" groupbefore the "high" group. If all processes provide the same high argu-
ment, then the order of the union is arbitrary. This call is blocking and collective within the union of the two groups. EERRRROORRSS Almost all MPI routines return an error value; C routines as the valueof the function and Fortran routines in the last argument. C++ func-
tions do not return errors. If the default error handler is set toMPI::ERRORSTHROWEXCEPTIONS, then on error the C++ exception mechanism
will be used to throw an MPI:Exception object. Before the error value is returned, the current MPI error handler is called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed withMPICommseterrhandler; the predefined error handler MPIERRORSRETURN
may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error.SEE ALSO
MPIIntercommcreate MPICommfree Open MPI 1.2 September 2006 MPIIntercommmerge(3OpenMPI)