Lagrange colormap must preserve the first/last control colors as endpoints.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_024(id, nfail) use forcolormap_utils, only: lagrange integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "lagrange: endpoints equal control colors" logical :: ok integer :: colors(2,3) integer, allocatable :: map(:,:) integer :: levels_ levels_ = 11 colors(1,:) = [ 10, 20, 30 ] colors(2,:) = [ 110, 120, 130 ] map = lagrange(colors, levels_) ok = all(map(1,:) == colors(1,:)) .and. all(map(levels_,:) == colors(2,:)) call report_test(name, ok, id, nfail) end subroutine test_024