An invalid colormap name should be corrected to the default ("grayC").
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_057(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "set(invalid name) -> grayC" logical :: ok type(Colormap) :: cmap call cmap%set("actom10", 0.0_wp, 2.0_wp) call cmap%print_status() ok = (trim(cmap%get_name()) == "grayC") call report_test(name, ok, id, nfail) end subroutine test_057