-C -*- Mode: Fortran; -*-
+C -*- Mode: Fortran; -*-
C
C (C) 2003 by Argonne National Laboratory.
C See COPYRIGHT in top-level directory.
C The only difference between the MPI-2 and MPI-1 attribute caching
C routines in Fortran is that the take an address-sized integer
C instead of a simple integer. These still are not pointers,
-C so the values are still just integers.
+C so the values are still just integers.
C
errs = 0
call mtest_init( ierr )
type1 = MPI_INTEGER
-C
+C
extrastate = 1001
- call mpi_type_create_keyval( MPI_TYPE_DUP_FN,
- & MPI_TYPE_NULL_DELETE_FN, keyval,
+ call mpi_type_create_keyval( MPI_TYPE_DUP_FN,
+ & MPI_TYPE_NULL_DELETE_FN, keyval,
& extrastate, ierr )
flag = .true.
call mpi_type_get_attr( type1, keyval, valout, flag, ierr )
call mpi_type_get_attr( type1, keyval, valout, flag, ierr )
if (valout .ne. 2003) then
errs = errs + 1
- print *, 'Unexpected value (should be 2003)', valout,
+ print *, 'Unexpected value (should be 2003)', valout,
& ' from attr'
endif
-
+
valin = 2001
call mpi_type_set_attr( type1, keyval, valin, ierr )
flag = .false.
call mpi_type_get_attr( type1, keyval, valout, flag, ierr )
if (valout .ne. 2001) then
errs = errs + 1
- print *, 'Unexpected value (should be 2001)', valout,
+ print *, 'Unexpected value (should be 2001)', valout,
& ' from attr'
endif
-
+
C
C Test the copy function
valin = 5001
errs = errs + 1
print *, 'Unexpected output value in type2 ', valout
endif
-C Test the delete function
+C Test the delete function
call mpi_type_free( type2, ierr )
C
C Test the attr delete function