test_027 Subroutine

subroutine test_027(id, nfail)

Uses

  • proc~~test_027~~UsesGraph proc~test_027 test_027 module~forcolormap_utils forcolormap_utils proc~test_027->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 default to 256 levels and 3 RGB channels.

Arguments

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

Calls

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

Called by

proc~~test_027~~CalledByGraph proc~test_027 test_027 program~check check program~check->proc~test_027

Source Code

   subroutine test_027(id, nfail)
      use forcolormap_utils, only: bezier
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "bezier: default levels=256, shape (256,3)"
      logical :: ok
      integer :: colors(2,3)
      integer, allocatable :: map(:,:)

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

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