X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1bfdc9a38c22af6a9becf133be154a2fa2bc6589..d345b5dad90a1ec9829011b9188185aaf4d3240a:/teshsuite/smpi/mpich3-test/f77/coll/redscatf.f diff --git a/teshsuite/smpi/mpich3-test/f77/coll/redscatf.f b/teshsuite/smpi/mpich3-test/f77/coll/redscatf.f index efd6c06040..ecb04e9b55 100644 --- a/teshsuite/smpi/mpich3-test/f77/coll/redscatf.f +++ b/teshsuite/smpi/mpich3-test/f77/coll/redscatf.f @@ -2,26 +2,6 @@ C -*- Mode: Fortran; -*- C C (C) 2011 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 (.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 C C Test of reduce scatter. C @@ -86,3 +66,23 @@ C recvbuf should be size * (rank + i) 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 ',datatype, + & ' passed to user_op()' + return + endif + endif + + do i=1, count + cout(i) = cin(i) + cout(i) + enddo + end