Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Timing Bug Fix #577

Merged
merged 1 commit into from
Sep 9, 2024
Merged
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
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