Skip to content

Commit

Permalink
Merge pull request #577 from feathern/timing_fix
Browse files Browse the repository at this point in the history
Timing Bug Fix
  • Loading branch information
feathern authored Sep 9, 2024
2 parents ad02113 + 0fb233d commit 6790d65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Physics/Sphere_Driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ End Subroutine Initialize_TimeStepping
Subroutine Main_Loop_Sphere()
Implicit None
Integer :: last_iteration, first_iteration, i, iret
Integer :: io=15, ierr
Integer :: io=15, ierr, iteration_count
Real*8 :: captured_time, max_time_seconds
Logical :: terminate_file_exists
Character*14 :: tmstr
Expand Down Expand Up @@ -310,15 +310,16 @@ Subroutine Main_Loop_Sphere()
Write(tmstr,fmtstr)captured_time
Call stdout%print('captured time: '//tmstr)

Write(tmstr,fmtstr)(last_iteration-first_iteration)/StopWatch(loop_time)%elapsed
iteration_count = last_iteration-first_iteration
Write(tmstr,fmtstr)(iteration_count)/StopWatch(loop_time)%elapsed
Call stdout%print(' ')
Call stdout%print(' iter/sec: '//tmstr)

Call stdout%print('//////////////////////////////////////////////')


Endif
Call Finalize_Timing(n_r,l_max,max_iterations)
Call Finalize_Timing(n_r,l_max,iteration_count)
End Subroutine Main_Loop_Sphere

! Signal handler function
Expand Down

0 comments on commit 6790d65

Please sign in to comment.