X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/067f764922a3f1cbf3f7b3cce63a9206b47f5516..d345b5dad90a1ec9829011b9188185aaf4d3240a:/teshsuite/smpi/mpich3-test/f90/coll/redscatf90.f90 diff --git a/teshsuite/smpi/mpich3-test/f90/coll/redscatf90.f90 b/teshsuite/smpi/mpich3-test/f90/coll/redscatf90.f90 index 496d178277..12b51b22a8 100644 --- a/teshsuite/smpi/mpich3-test/f90/coll/redscatf90.f90 +++ b/teshsuite/smpi/mpich3-test/f90/coll/redscatf90.f90 @@ -4,23 +4,6 @@ ! (C) 2011 by Argonne National Laboratory. ! See COPYRIGHT in top-level directory. ! - subroutine uop( cin, cout, count, datatype ) - use mpi - integer cin(*), cout(*) - integer count, datatype - integer i - - if (.false.) then - if (datatype .ne. MPI_INTEGER) then - write(6,*) 'Invalid datatype ',datatype,' passed to user_op()' - return - endif - endif - - do i=1, count - cout(i) = cin(i) + cout(i) - enddo - end ! ! Test of reduce scatter. ! @@ -88,3 +71,21 @@ call mpi_finalize( ierr ) end + + subroutine uop( cin, cout, count, datatype ) + use mpi + integer cin(*), cout(*) + integer count, datatype + integer i + + if (.false.) then + if (datatype .ne. MPI_INTEGER) then + write(6,*) 'Invalid datatype ',datatype,' passed to user_op()' + return + endif + endif + + do i=1, count + cout(i) = cin(i) + cout(i) + enddo + end