1 C -*- Mode: Fortran; -*-
3 C (C) 2003 by Argonne National Laboratory.
4 C See COPYRIGHT in top-level directory.
11 integer comm, group1, group2, result, win, intsize
12 logical mtestGetIntraComm
16 call mtest_init( ierr )
18 call mpi_type_size( MPI_INTEGER, intsize, ierr )
19 do while( mtestGetIntraComm( comm, 2, .false. ) )
21 call mpi_win_create( buf, asize, intsize,
22 & MPI_INFO_NULL, comm, win, ierr )
24 call mpi_comm_group( comm, group1, ierr )
25 call mpi_win_get_group( win, group2, ierr )
26 call mpi_group_compare( group1, group2, result, ierr )
27 if (result .ne. MPI_IDENT) then
29 print *, ' Did not get the ident groups'
31 call mpi_group_free( group1, ierr )
32 call mpi_group_free( group2, ierr )
34 call mpi_win_free( win, ierr )
35 call mtestFreeComm( comm )
38 call mtest_finalize( errs )
39 call mpi_finalize( ierr )