run_test3 Subroutine

subroutine run_test3(ut)

Arguments

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

Calls

proc~~run_test3~~CallsGraph proc~run_test3 run_test3 check check proc~run_test3->check proc~timer_start timer%timer_start proc~run_test3->proc~timer_start proc~timer_stop timer%timer_stop proc~run_test3->proc~timer_stop proc~timer_write timer%timer_write proc~run_test3->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_test3~~CalledByGraph proc~run_test3 run_test3 program~check check program~check->proc~run_test3

Source Code

   subroutine run_test3(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:')
      call t%timer_write('test/test3_etimes.txt')

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