colormap(1D) should write an output image file (existence check only).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_079(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "colormap(1D) writes a PPM file" logical :: ok type(Colormap) :: cm character(len=*), parameter :: fname = "test_tmp_colormap_1d.ppm" call cm%set("viridis", 0.0_wp, 1.0_wp) call cm%colormap(fname, zfun_1d, xmin=0.0_wp, xmax=1.0_wp, width=12, height=3) ok = exists_file(fname) .or. exists_file(trim(fname)//".ppm") .or. exists_file("test_tmp_colormap_1d") call delete_if_exists(fname) call delete_if_exists(trim(fname)//".ppm") call delete_if_exists("test_tmp_colormap_1d") call report_test(name, ok, id, nfail) end subroutine test_079