X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d0ffc37686edcc803601f76ab51fdfed5fc2f241..d345b5dad90a1ec9829011b9188185aaf4d3240a:/teshsuite/smpi/mpich3-test/f77/coll/exscanf.f?ds=sidebyside diff --git a/teshsuite/smpi/mpich3-test/f77/coll/exscanf.f b/teshsuite/smpi/mpich3-test/f77/coll/exscanf.f index 5e6f64e63e..2f8b897cac 100644 --- a/teshsuite/smpi/mpich3-test/f77/coll/exscanf.f +++ b/teshsuite/smpi/mpich3-test/f77/coll/exscanf.f @@ -2,23 +2,6 @@ C -*- Mode: Fortran; -*- C C (C) 2003 by Argonne National Laboratory. C See COPYRIGHT in top-level directory. -C - subroutine uop( cin, cout, count, datatype ) - implicit none - include 'mpif.h' - integer cin(*), cout(*) - integer count, datatype - integer i - -! if (datatype .ne. MPI_INTEGER) then -! write(6,*) 'Invalid datatype passed to user_op()' -! return -! endif - - do i=1, count - cout(i) = cin(i) + cout(i) - enddo - end C program main implicit none @@ -105,3 +88,22 @@ C (rank)(rank-1)/2 and -i call mtest_finalize( errs ) call mpi_finalize( ierr ) end +C + subroutine uop( cin, cout, count, datatype ) + implicit none + include 'mpif.h' + integer cin(*), cout(*) + integer count, datatype + integer i + + if (.false.) then + if (datatype .ne. MPI_INTEGER) then + write(6,*) 'Invalid datatype passed to user_op()' + return + endif + endif + + do i=1, count + cout(i) = cin(i) + cout(i) + enddo + end