File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ End Subroutine Initialize_TimeStepping
7272 Subroutine Main_Loop_Sphere ()
7373 Implicit None
7474 Integer :: last_iteration, first_iteration, i, iret
75- Integer :: io= 15 , ierr
75+ Integer :: io= 15 , ierr, iteration_count
7676 Real * 8 :: captured_time, max_time_seconds
7777 Logical :: terminate_file_exists
7878 Character * 14 :: tmstr
@@ -310,15 +310,16 @@ Subroutine Main_Loop_Sphere()
310310 Write (tmstr,fmtstr)captured_time
311311 Call stdout% print (' captured time: ' // tmstr)
312312
313- Write (tmstr,fmtstr)(last_iteration- first_iteration)/ StopWatch(loop_time)% elapsed
313+ iteration_count = last_iteration- first_iteration
314+ Write (tmstr,fmtstr)(iteration_count)/ StopWatch(loop_time)% elapsed
314315 Call stdout% print (' ' )
315316 Call stdout% print (' iter/sec: ' // tmstr)
316317
317318 Call stdout% print (' //////////////////////////////////////////////' )
318319
319320
320321 Endif
321- Call Finalize_Timing(n_r,l_max,max_iterations )
322+ Call Finalize_Timing(n_r,l_max,iteration_count )
322323 End Subroutine Main_Loop_Sphere
323324
324325 ! Signal handler function
You can’t perform that action at this time.
0 commit comments