run_test11 Subroutine

subroutine run_test11(ut)

Arguments

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

Calls

proc~~run_test11~~CallsGraph proc~run_test11 run_test11 check check proc~run_test11->check

Called by

proc~~run_test11~~CalledByGraph proc~run_test11 run_test11 program~check check program~check->proc~run_test11

Source Code

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

      call t%mtimer_start()
      do nl = 1, nloops
         call sleep(1)
      end do
      call t%mtimer_stop(nloops = nloops, message = 'MPI time:')
      call t%mtimer_write('test/test11_mtimes.txt')

      call ut%check(res=t%mpi_time, expected=1.0_rk, tol=1.0e-1_rk, msg='test11')
#else
      call ut%check(res=.true., expected=.true., msg='test11 skipped USE_MPI')
#endif
   end subroutine run_test11