3 integer f77com, wgrp, f77grp, iam, i, ierr
9 call mpi_comm_size(mpi_comm_world, i, ierr)
10 call mpi_comm_rank(mpi_comm_world, iam, ierr)
12 print*,
'Need at least 2 processes to run test, aborting.'
15 print*,
'If this routine does not complete successfully,'
16 print*,
'Do _NOT_ set TRANSCOMM = -DCSameF77'
25 call mpi_comm_group(mpi_comm_world, wgrp, ierr)
26 call mpi_group_incl(wgrp, 2, irank, f77grp, ierr)
27 call mpi_comm_create(mpi_comm_world, f77grp, f77com, ierr)
28 call mpi_group_free(f77grp, ierr)
33 print*,
'Do _NOT_ set TRANSCOMM = -DCSameF77'
35 print*,
'Set TRANSCOMM = -DCSameF77'
39 if (f77grp .ne. mpi_comm_null)
call mpi_comm_free(f77com, ierr)
41 call mpi_finalize(ierr)