extract() should ignore invalid requests (here: requesting more levels than available).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_061(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "extract(1000) invalid -> levels unchanged" logical :: ok type(Colormap) :: cmap integer :: n0 call cmap%set("fes", 0.0_wp, 2.0_wp) n0 = cmap%get_levels() call cmap%extract(1000) call cmap%print_status() ok = (cmap%get_levels() == n0) call report_test(name, ok, id, nfail) end subroutine test_061