Built-ins with fixed level counts should override an incompatible user request.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_059(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "set(acton10, levels=256) corrected to 10" logical :: ok type(Colormap) :: cmap call cmap%set("acton10", 0.0_wp, 2.0_wp, 256) call cmap%print_status() ok = (cmap%get_levels() == 10) call report_test(name, ok, id, nfail) end subroutine test_059