test_028 Subroutine

subroutine test_028(id, nfail)

Uses

  • proc~~test_028~~UsesGraph proc~test_028 test_028 module~forcolormap_utils forcolormap_utils proc~test_028->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

Bézier colormap generator should honor an explicit levels argument.

Arguments

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

Calls

proc~~test_028~~CallsGraph proc~test_028 test_028 proc~bezier bezier proc~test_028->proc~bezier proc~report_test report_test proc~test_028->proc~report_test proc~factorial factorial proc~bezier->proc~factorial

Called by

proc~~test_028~~CalledByGraph proc~test_028 test_028 program~check check program~check->proc~test_028

Source Code

   subroutine test_028(id, nfail)
      use forcolormap_utils, only: bezier
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "bezier: explicit levels respected"
      logical :: ok
      integer :: colors(2,3)
      integer, allocatable :: map(:,:)
      integer :: levels_

      levels_ = 19
      colors(1,:) = [ 0, 0, 0 ]
      colors(2,:) = [ 255, 255, 255 ]

      map = bezier(colors, levels_)
      ok = (size(map,1) == levels_) .and. (size(map,2) == 3)
      call report_test(name, ok, id, nfail)
   end subroutine test_028