test_006 Subroutine

subroutine test_006(id, nfail)

Uses

  • proc~~test_006~~UsesGraph proc~test_006 test_006 module~forcolormap_utils forcolormap_utils proc~test_006->module~forcolormap_utils module~forcolormap_parameters forcolormap_parameters module~forcolormap_utils->module~forcolormap_parameters iso_fortran_env iso_fortran_env module~forcolormap_parameters->iso_fortran_env

Check a known reference value: 10! = 3628800.

Arguments

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

Calls

proc~~test_006~~CallsGraph proc~test_006 test_006 proc~factorial factorial proc~test_006->proc~factorial proc~report_test report_test proc~test_006->proc~report_test

Called by

proc~~test_006~~CalledByGraph proc~test_006 test_006 program~check check program~check->proc~test_006

Source Code

   subroutine test_006(id, nfail)
      use forcolormap_utils, only: factorial
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "factorial: 10! = 3628800"
      logical :: ok

      ok = (factorial(10) == 3628800)
      call report_test(name, ok, id, nfail)
   end subroutine test_006