reverse(name="...") should set the name explicitly (no automatic suffixing).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_064(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "reverse(name=...) sets explicit name" logical :: ok type(Colormap) :: cm integer :: map(3,3) map(1,:) = [ 10, 20, 30 ] map(2,:) = [ 40, 50, 60 ] map(3,:) = [ 70, 80, 90 ] call cm%create("custom", 0.0_wp, 1.0_wp, map) call cm%reverse("myname") ok = (trim(cm%get_name()) == "myname") call report_test(name, ok, id, nfail) end subroutine test_064