test_022 Subroutine

subroutine test_022(id, nfail)

Uses

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

Lagrange 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_022~~CallsGraph proc~test_022 test_022 proc~lagrange lagrange proc~test_022->proc~lagrange proc~report_test report_test proc~test_022->proc~report_test proc~lagrange_poly lagrange_poly proc~lagrange->proc~lagrange_poly

Called by

proc~~test_022~~CalledByGraph proc~test_022 test_022 program~check check program~check->proc~test_022

Source Code

   subroutine test_022(id, nfail)
      use forcolormap_utils, only: lagrange
      integer, intent(inout) :: id, nfail
      character(len=*), parameter :: name = "lagrange: 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 = lagrange(colors)
      ok = (size(map,1) == 256) .and. (size(map,2) == 3)
      call report_test(name, ok, id, nfail)
   end subroutine test_022