Bézier 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_029(id, nfail) use forcolormap_utils, only: bezier integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "bezier: endpoints equal control colors" logical :: ok integer :: colors(2,3) integer, allocatable :: map(:,:) integer :: levels_ levels_ = 9 colors(1,:) = [ 1, 2, 3 ] colors(2,:) = [ 11, 12, 13 ] map = bezier(colors, levels_) ok = all(map(1,:) == colors(1,:)) .and. all(map(levels_,:) == colors(2,:)) call report_test(name, ok, id, nfail) end subroutine test_029