Skip to content

Commit d8f13a5

Browse files
committed
Change string length
1 parent d226e34 commit d8f13a5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/physics/utils/tropopause_climo_read.F90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module tropopause_climo_read
99

1010
use ccpp_kinds, only: kind_phys
1111
use runtime_obj, only: unset_str
12+
use shr_kind_mod, only: shr_kind_cl
1213

1314
implicit none
1415
private
@@ -28,7 +29,7 @@ module tropopause_climo_read
2829
real(kind_phys), public, allocatable :: tropp_days(:)
2930

3031
! Private module data
31-
character(len=256) :: tropopause_climo_file = unset_str
32+
character(len=shr_kind_cl) :: tropopause_climo_file = unset_str
3233

3334
contains
3435
! Read namelist variable tropopause_climo_file.
@@ -119,7 +120,7 @@ subroutine tropopause_climo_read_file()
119120
real(kind_phys), allocatable :: lon(:)
120121
real(kind_phys) :: to_lats(pcols), to_lons(pcols)
121122
real(kind_phys), parameter :: d2r=pi/180._kind_phys, zero=0._kind_phys, twopi=pi*2._kind_phys
122-
character(len=256) :: locfn
123+
character(len=shr_kind_cl) :: locfn
123124
character(len=shr_kind_cm) :: errmsg
124125

125126
errmsg = ''
@@ -237,4 +238,4 @@ subroutine tropopause_climo_read_file()
237238
call mark_as_initialized('filename_of_tropopause_climatology')
238239

239240
end subroutine tropopause_climo_read_file
240-
end module tropopause_climo_read
241+
end module tropopause_climo_read

src/physics/utils/tropopause_climo_read.meta

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
long_name = File path to tropopause climatology file
2727
units = none
2828
type = character | kind = len=256
29-
dimensions = ()
29+
dimensions = ()

0 commit comments

Comments
 (0)