X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ba1c6dce93f9ab740c9d66e268572e5c803b5edb..bb12a168512ced7a0f1e4924d367c87ed7c22d1c:/teshsuite/smpi/mpich3-test/f77/attr/commattrf.f diff --git a/teshsuite/smpi/mpich3-test/f77/attr/commattrf.f b/teshsuite/smpi/mpich3-test/f77/attr/commattrf.f index 491ec88098..0b9e2a1c21 100644 --- a/teshsuite/smpi/mpich3-test/f77/attr/commattrf.f +++ b/teshsuite/smpi/mpich3-test/f77/attr/commattrf.f @@ -1,4 +1,4 @@ -C -*- Mode: Fortran; -*- +C -*- Mode: Fortran; -*- C C (C) 2003 by Argonne National Laboratory. C See COPYRIGHT in top-level directory. @@ -18,16 +18,16 @@ C 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 callcount = 0 delcount = 0 call mtest_init( ierr ) call mpi_comm_dup( MPI_COMM_WORLD, comm1, ierr ) -C +C extrastate = 1001 - call mpi_comm_create_keyval( mycopyfn, mydelfn, keyval, + call mpi_comm_create_keyval( mycopyfn, mydelfn, keyval, & extrastate, ierr ) flag = .true. call mpi_comm_get_attr( comm1, keyval, valout, flag, ierr ) @@ -43,10 +43,10 @@ C call mpi_comm_get_attr( comm1, 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_comm_set_attr( comm1, keyval, valin, ierr ) flag = .false. @@ -54,10 +54,10 @@ C call mpi_comm_get_attr( comm1, 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 @@ -75,12 +75,12 @@ C Test the copy function errs = errs + 1 print *, 'Unexpected output value in comm2 ', valout endif -C Test the delete function +C Test the delete function curcount = delcount call mpi_comm_free( comm2, ierr ) if (delcount .ne. curcount + 1) then errs = errs + 1 - print *, ' did not get expected value of delcount ', + print *, ' did not get expected value of delcount ', & delcount, curcount + 1 endif C