get_levels(i) should be positive for representative indices.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_036(id, nfail) use forcolormap_info, only: cmap_info integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "cmap_info: get_levels positive for sample indices" logical :: ok integer :: n, lev n = cmap_info%get_ncolormaps() ok = .true. lev = cmap_info%get_levels(1) ok = ok .and. (lev > 0) lev = cmap_info%get_levels((n+1)/2) ok = ok .and. (lev > 0) lev = cmap_info%get_levels(n) ok = ok .and. (lev > 0) call report_test(name, ok, id, nfail) end subroutine test_036