Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Put the substep counter where it belongs
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Mar 10, 2023
1 parent a312d72 commit 7cb3c0c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/walltime/walltime_implementations.f90
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ module subroutine walltime_report(self, message, unit)
character(len=*), intent(in) :: message !! Message to prepend to the wall time terminal output
integer(I4B), intent(in) :: unit !! Output file unit for report text to be directed
! Internals
character(len=*), parameter :: nosubstepfmt = '" Total wall time: ", es12.5, "; Interval wall time: ", es12.5 '
character(len=*), parameter :: substepfmt = '" Total wall time: ", es12.5, "; Interval wall time: ", es12.5, ";' //&
' Interval wall time/step: ", es12.5'
character(len=STRMAX) :: fmt
Expand Down Expand Up @@ -103,7 +102,6 @@ module subroutine walltime_start_main(self)
call system_clock(self%count_start_main, self%count_rate, self%count_max)
self%main_is_started = .true.
self%wall_main = 0.0_DP
self%nsubsteps = self%nsubsteps + 1

return
end subroutine walltime_start_main
Expand Down Expand Up @@ -134,6 +132,7 @@ module subroutine walltime_start(self)
else ! Start a new step timer
call system_clock(self%count_start_step)
end if
self%nsubsteps = self%nsubsteps + 1

return
end subroutine walltime_start
Expand Down

0 comments on commit 7cb3c0c

Please sign in to comment.