Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Silly workaround for coverage build with gcc-10."
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / coll / uallreducef.f
index 6a74bf0..566d294 100644 (file)
@@ -6,6 +6,23 @@ C
 C
 C Test user-defined operations.  This tests a simple commutative operation
 C
+      subroutine uop( cin, cout, count, datatype )
+      implicit none
+      include 'mpif.h'
+      integer cin(*), cout(*)
+      integer count, datatype
+      integer i
+      
+C      if (datatype .ne. MPI_INTEGER) then
+C         print *, 'Invalid datatype (',datatype,') passed to user_op()'
+C         return
+C      endif
+
+      do i=1, count
+         cout(i) = cin(i) + cout(i)
+      enddo
+      end
+
       program main
       implicit none
       include 'mpif.h'
@@ -44,20 +61,3 @@ C         Check that all results are correct
       call mtest_finalize(errs)
       call mpi_finalize(ierr)
       end
-
-      subroutine uop( cin, cout, count, datatype )
-      implicit none
-      include 'mpif.h'
-      integer cin(*), cout(*)
-      integer count, datatype
-      integer i
-      
-C      if (datatype .ne. MPI_INTEGER) then
-C         print *, 'Invalid datatype (',datatype,') passed to user_op()'
-C         return
-C      endif
-
-      do i=1, count
-         cout(i) = cin(i) + cout(i)
-      enddo
-      end