@@ -86,7 +86,7 @@ end function get_levels
8686
8787 ! > Filter colormaps and write metadata.
8888 impure subroutine write (this , verbose , name , family , gradient , palette , author , license , levels , file_name , append )
89- use iso_fortran_env, only: output_unit
89+ use , intrinsic :: iso_fortran_env, only: output_unit
9090 class(Colormaps_info), intent (in ) :: this
9191 integer , intent (in ), optional :: verbose
9292 character (* ), intent (in ), optional :: name, family, gradient, palette, author, license
@@ -211,6 +211,9 @@ impure subroutine write(this, verbose, name, family, gradient, palette, author,
211211 repeat (SEP2, w_levels) // SEP1// &
212212 repeat (SEP2, w_colorbar) // SEP1
213213
214+ case default
215+ ! no header
216+
214217 end select
215218
216219 ! data
@@ -261,6 +264,9 @@ impure subroutine write(this, verbose, name, family, gradient, palette, author,
261264 cell(tmp, w_levels) // SEP1// &
262265 cell(this% colormaps(i)% colorbar, w_colorbar) // SEP1
263266
267+ case default
268+ print * , ' Invalid verbose level: ' , verbose_
269+ return
264270 end select
265271 end do
266272
0 commit comments