set() should swap bounds when called with zmin>zmax.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_058(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "set(zmin>zmax) swaps bounds" logical :: ok type(Colormap) :: cmap real(wp), parameter :: tol = 1.0e-12_wp call cmap%set("acton10", 2.0_wp, 0.0_wp) call cmap%print_status() ok = (abs(cmap%get_zmin() - 0.0_wp) <= tol) .and. (abs(cmap%get_zmax() - 2.0_wp) <= tol) call report_test(name, ok, id, nfail) end subroutine test_058