set(acton) followed by extract(10) should yield exactly 10 levels.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_056(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "set(acton) then extract(10) gives 10 levels" logical :: ok type(Colormap) :: cmap call cmap%set("acton", 0.0_wp, 2.0_wp) call cmap%print_status() call cmap%extract(10) ok = (cmap%get_levels() == 10) call report_test(name, ok, id, nfail) end subroutine test_056