next up previous contents
Next: Caching Up: Groups, Contexts and Communicators Previous: Motivating Examples   Contents

Inter-Communication

boolean Comm.testInter()
returns: true if this is an inter-communicator, false otherwise



Test if this communicator is an inter-communicator. Java binding of the MPI operation MPI_COMM_TEST_INTER.

int Intercomm.remoteSize()
returns: number of process in remote group of this communicator



Size of remote group. Java binding of the MPI operation MPI_COMM_REMOTE_SIZE.

Group Intercomm.remoteGroup()
returns: remote group of this communicator



Return the remote group. Java binding of the MPI operation MPI_COMM_REMOTE_GROUP.

Intercomm Comm.createIntercomm(Comm localComm, int localLeader,
                               int remoteLeader, int tag)
localComm local intra-communicator
localLeader rank of local group leader in localComm
remoteLeader rank of remote group leader in this communictor
tag ``safe'' tag
   
returns: new inter-communicator



Create an inter-communicator. Java binding of the MPI operation MPI_INTERCOMM_CREATE.

Intracomm Intercomm.merge(boolean high)
high true if the local group has higher ranks in combined group
   
returns: new intra-communicator



Create an intra-communicator from the union of the two groups in the inter-communicator. Java binding of the MPI operation MPI_INTERCOMM_MERGE.


next up previous contents
Next: Caching Up: Groups, Contexts and Communicators Previous: Motivating Examples   Contents
Bryan Carpenter 2002-07-12