Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add precision to logfile proces timing #182

Merged
merged 2 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CCTM/src/driver/sciproc.F
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ END SUBROUTINE SA_WRAP_AE
! Print Summary Timing for Master time step
CALL TIMING_SPLIT ( CPU_TIME_START_MASTER, 2 )

1002 FORMAT ( 2x, A15, ' completed... ', F6.1, ' seconds' )
1002 FORMAT ( 2x, A15, ' completed... ', F12.3, ' seconds' )

RETURN
END
6 changes: 3 additions & 3 deletions CCTM/src/util/util/RUNTIME_VARS.F
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@ SUBROUTINE TIMING_SPLIT( CPU_TIME_START, IMSG, CPROCIN )
CASE ( 1 )
! Write Out The Time to Complete Each Sub-Process
WRITE( XMSG, 1002 ),TRIM( CPROC ), CPU_TIME_FINISH-CPU_TIME_START
1002 FORMAT ( 2x, A15, ' completed... ', F6.1, ' seconds' )
1002 FORMAT ( 2x, A15, ' completed... ', F12.4, ' seconds' )

CASE ( 2 )
! Write out the time to complete the entire master time step
Expand All @@ -1169,14 +1169,14 @@ SUBROUTINE TIMING_SPLIT( CPU_TIME_START, IMSG, CPROCIN )
#ifndef twoway
IF ( MYPE .EQ. 0 ) CALL LOG_MESSAGE( OUTDEV, XMSG )
#endif
WRITE( XMSG, '(7x,A24,F6.1,A8)' ),'Processing completed... ',
WRITE( XMSG, '(7x,A24,F12.4,A8)' ),'Processing completed... ',
& (CPU_TIME_FINISH-CPU_TIME_START),' seconds'
CALL LOG_MESSAGE( LOGDEV, XMSG )
WRITE( LOGDEV, * )

CASE ( 3 )
! Write out the time to complete the output procedure
WRITE( XMSG, '(1x,A32,F4.1,A)' ), '=--> Data Output completed... ',
WRITE( XMSG, '(1x,A32,F10.4,A)' ), '=--> Data Output completed... ',
& (CPU_TIME_FINISH-CPU_TIME_START),' seconds'
CALL LOG_MESSAGE( LOGDEV, XMSG )
WRITE( LOGDEV, * )
Expand Down