run_test27 Subroutine

subroutine run_test27(ut)

Arguments

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

Calls

proc~~run_test27~~CallsGraph proc~run_test27 run_test27 check check proc~run_test27->check proc~dtimer_start timer%dtimer_start proc~run_test27->proc~dtimer_start proc~dtimer_stop timer%dtimer_stop proc~run_test27->proc~dtimer_stop proc~dtimer_write timer%dtimer_write proc~run_test27->proc~dtimer_write proc~epoch_seconds_utc epoch_seconds_utc proc~dtimer_start->proc~epoch_seconds_utc proc~dtimer_stop->proc~epoch_seconds_utc proc~finalize_timing finalize_timing proc~dtimer_stop->proc~finalize_timing proc~write_to_file write_to_file proc~dtimer_write->proc~write_to_file proc~days_from_civil days_from_civil proc~epoch_seconds_utc->proc~days_from_civil proc~print_time print_time proc~finalize_timing->proc~print_time colorize colorize proc~print_time->colorize

Called by

proc~~run_test27~~CalledByGraph proc~run_test27 run_test27 program~check check program~check->proc~run_test27

Source Code

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

      call t%dtimer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%dtimer_stop(message = 'Elapsed time:')
      call t%dtimer_write('test/test27_etimes.txt')

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