1 C -*- Mode: Fortran; -*-
4 C (C) 2003 by Argonne National Laboratory.
5 C See COPYRIGHT in top-level directory.
11 parameter (max_asizev=2)
13 integer iarray(200), gap, intsize
20 call MPI_Get_address( iarray(1), aintv(1), ierr )
21 call MPI_Get_address( iarray(200), aintv(2), ierr )
22 gap = aintv(2) - aintv(1)
24 call MPI_Type_size( MPI_INTEGER, intsize, ierr )
26 if (gap .ne. 199 * intsize) then
28 print *, ' Using get_address, computed a gap of ', gap
29 print *, ' Expected a gap of ', 199 * intsize
32 print *, ' Found ', errs, ' errors'
37 call MPI_Finalize( ierr )