test_002 Subroutine

subroutine test_002(id, nfail)

Uses

  • proc~~test_002~~UsesGraph proc~test_002 test_002 module~forcolormap_parameters forcolormap_parameters proc~test_002->module~forcolormap_parameters iso_fortran_env iso_fortran_env module~forcolormap_parameters->iso_fortran_env

Sanity-check pi is in a reasonable floating-point interval (3,4).

Arguments

Type IntentOptional Attributes Name
integer, intent(inout) :: id
integer, intent(inout) :: nfail

Calls

proc~~test_002~~CallsGraph proc~test_002 test_002 proc~report_test report_test proc~test_002->proc~report_test

Called by

proc~~test_002~~CalledByGraph proc~test_002 test_002 program~check check program~check->proc~test_002

Source Code

   subroutine test_002(id, nfail)
      use forcolormap_parameters, only: wp, pi
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "pi in (3,4)"
      logical :: ok

      ok = (pi > 3.0_wp) .and. (pi < 4.0_wp)
      call report_test(name, ok, id, nfail)
   end subroutine test_002