run_test15 Subroutine

subroutine run_test15(ut)

Arguments

Type IntentOptional Attributes Name
type(unit_test), intent(inout) :: ut

Calls

proc~~run_test15~~CallsGraph proc~run_test15 run_test15 check check proc~run_test15->check proc~timer_start timer%timer_start proc~run_test15->proc~timer_start proc~timer_stop timer%timer_stop proc~run_test15->proc~timer_stop proc~timer_write timer%timer_write proc~run_test15->proc~timer_write proc~finalize_timing finalize_timing proc~timer_stop->proc~finalize_timing proc~ticks_diff ticks_diff proc~timer_stop->proc~ticks_diff proc~write_to_file write_to_file proc~timer_write->proc~write_to_file proc~print_time print_time proc~finalize_timing->proc~print_time colorize colorize proc~print_time->colorize

Called by

proc~~run_test15~~CalledByGraph proc~run_test15 run_test15 program~check check program~check->proc~run_test15

Source Code

   subroutine run_test15(ut)
      type(unit_test), intent(inout) :: ut
      type(timer) :: t
      integer :: nl
      integer, parameter :: nloops = 3

      call t%timer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%timer_stop(message = 'Elapsed time:', print=.false.)
      call t%timer_write('test/test15_etimes.txt')

      call ut%check(res=t%elapsed_time, expected=real(nloops,rk)*1.0_rk, tol=1.0e-1_rk, msg='test15')
   end subroutine run_test15