Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Flush output of energy tests.
authorMatthieu Volat <mazhe@alkumuna.eu>
Tue, 23 May 2017 17:12:20 +0000 (19:12 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Tue, 23 May 2017 19:31:55 +0000 (21:31 +0200)
That'll ensure in order output.

examples/smpi/energy/f77/sef.f
examples/smpi/energy/f90/sef90.f90

index b4aba21..4cbc5a3 100644 (file)
@@ -53,6 +53,8 @@
      &         rank, ']',' Energy consumed (Joules): ', e
       end do
 
+      flush(6)
+
       call MPI_Finalize(ierr)
       if (ierr .ne. MPI_SUCCESS) then
          print *, 'MPI_Finalize failed:', ierr
index ebd5485..e4f04a3 100644 (file)
@@ -52,6 +52,8 @@ program main
     rank, '] Energy consumed (Joules): ', e
   end do
 
+  flush(6)
+
   call MPI_Finalize(ierr)
   if (ierr .ne. MPI_SUCCESS) then
      print *, 'MPI_Finalize failed:', ierr