Skip to content
Snippets Groups Projects
Commit 87299ba2 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann :seedling:
Browse files

indication of the time for the first initial diagnostic

parent 313f33a2
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ SUBROUTINE control ...@@ -4,6 +4,7 @@ SUBROUTINE control
use basic use basic
use prec_const use prec_const
IMPLICIT NONE IMPLICIT NONE
REAL(dp) :: t_init_diag_0, t_init_diag_1
CALL cpu_time(start) CALL cpu_time(start)
!________________________________________________________________________________ !________________________________________________________________________________
...@@ -41,9 +42,14 @@ SUBROUTINE control ...@@ -41,9 +42,14 @@ SUBROUTINE control
! 1.6 Initial diagnostics ! 1.6 Initial diagnostics
IF (my_id .EQ. 0) WRITE(*,*) 'Initial diagnostics...' IF (my_id .EQ. 0) WRITE(*,*) 'Initial diagnostics...'
CALL cpu_time(t_init_diag_0) ! Measure the time of the init diag
CALL diagnose(0) CALL diagnose(0)
CALL cpu_time(t_init_diag_1)
! CALL mpi_barrier(MPI_COMM_WORLD, ierr) ! CALL mpi_barrier(MPI_COMM_WORLD, ierr)
IF (my_id .EQ. 0) WRITE(*,'(a/)') '...initial diagnostics done' IF (my_id .EQ. 0) THEN
WRITE(*,'(a)') '...initial diagnostics done'
WRITE(*,'(a,F6.3,a/)') '(',t_init_diag_1-t_init_diag_0,'[s])'
ENDIF
CALL FLUSH(stdout) CALL FLUSH(stdout)
CALL mpi_barrier(MPI_COMM_WORLD, ierr) CALL mpi_barrier(MPI_COMM_WORLD, ierr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment