MPI_COMM_TEST_INTER(comm, flag)
int MPI_Comm_test_inter(MPI_Comm comm, int *flag)
MPI_COMM_TEST_INTER(COMM, FLAG, IERROR)
INTEGER COMM, IERROR
LOGICAL FLAG
This local routine allows the calling process to determine if a communicator is an inter-communicator or an intra-communicator. It returns true if it is an inter-communicator, otherwise false.
When an inter-communicator is used as an input argument to the communicator accessors described above under intra-communication, the following table describes behavior.
MPI_COMM_* Function Behavior | |
(in Inter-Communication Mode) | |
MPI_COMM_SIZE | returns the size of the local group. |
MPI_COMM_GROUP | returns the local group. |
MPI_COMM_RANK | returns the rank in the local group |
The following accessors provide consistent access to the remote group of an inter-communicator:
The following are all local operations.
MPI_COMM_REMOTE_SIZE(comm, size)
int MPI_Comm_remote_size(MPI_Comm comm, int *size)
MPI_COMM_REMOTE_SIZE(COMM, SIZE, IERROR)
INTEGER COMM, SIZE, IERROR
MPI_COMM_REMOTE_GROUP(comm, group)
int MPI_Comm_remote_group(MPI_Comm comm, MPI_Group *group)
MPI_COMM_REMOTE_GROUP(COMM, GROUP, IERROR)
INTEGER COMM, GROUP, IERROR
MPI-Standard for MARMOT