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

Inter-Communication

boolean Comm.Test_inter()
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.Remote_size()
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.Remote_Group()
returns: remote group of this communicator



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

Intercomm Comm.Create_intercomm(Comm local_comm, int local_leader,
                                int remote_leader, int tag)
local_comm local intra-communicator
local_leader rank of local group leader in localComm
remote_leader 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