colorbar() should produce an output image file (existence is the main check here).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(inout) | :: | id | |||
| integer, | intent(inout) | :: | nfail |
subroutine test_078(id, nfail) use forcolormap, only: Colormap, wp integer, intent(inout) :: id, nfail character(len=*), parameter :: name = "colorbar() writes a PPM file" logical :: ok type(Colormap) :: cm character(len=*), parameter :: fname = "test_tmp_colorbar.ppm" call cm%set("viridis", 0.0_wp, 1.0_wp) call cm%colorbar(fname, width=16, height=4) ok = exists_file(fname) .or. exists_file(trim(fname)//".ppm") .or. exists_file("test_tmp_colorbar") call delete_if_exists(fname) call delete_if_exists(trim(fname)//".ppm") call delete_if_exists("test_tmp_colorbar") call report_test(name, ok, id, nfail) end subroutine test_078