run_test20 Subroutine

subroutine run_test20(ut)

Arguments

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

Calls

proc~~run_test20~~CallsGraph proc~run_test20 run_test20 check check proc~run_test20->check

Called by

proc~~run_test20~~CalledByGraph proc~run_test20 run_test20 program~check check program~check->proc~run_test20

Source Code

   subroutine run_test20(ut)
      type(unit_test), intent(inout) :: ut
#if defined(USE_OMP)
      type(timer) :: t
      integer :: nl
      integer, parameter :: nloops = 3

      call t%otimer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%otimer_stop(nloops = nloops, message = 'OMP time:', print=.false.)
      call t%otimer_write('test/test20_otimes.txt')

      call ut%check(res=t%omp_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test20')
#else
      call ut%check(res=.true., expected=.true., msg='test20 skipped USE_OMP')
#endif
   end subroutine run_test20