Skip to content

Commit e6779cd

Browse files
committed
add default case and use intrinsic in use statements
1 parent 425374c commit e6779cd

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/forcolormap_info.f90

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

src/forcolormap_parameters.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!> Global parameters of ForColormap.
22
module forcolormap_parameters
3-
use iso_fortran_env, only: wp=>real64
3+
use, intrinsic :: iso_fortran_env, only: wp=>real64
44
implicit none
55
private
66
public :: wp, pi, colormap_name_length, colormap_metadata

0 commit comments

Comments
 (0)