Skip to content

Commit e567bc0

Browse files
Consistent character(char_len) :: stdname in ice_import_export.F90 (CICE-Consortium#1029)
For operational implementation, clean up compiler Warning: CHARACTER expression will be truncated in assignment (80/128) at (1) [-Wcharacter-truncation]. NUOPC standard names here are all shorter than 80 characters. Part of ufs-community/ufs-weather-model#2703
1 parent 8c58282 commit e567bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cicecore/drivers/nuopc/cmeps/ice_import_export.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ module ice_import_export
7979
! Private module data
8080

8181
type fld_list_type
82-
character(len=128) :: stdname
82+
character(char_len) :: stdname
8383
integer :: ungridded_lbound = 0
8484
integer :: ungridded_ubound = 0
8585
end type fld_list_type
@@ -1409,7 +1409,7 @@ subroutine fldlist_realize(state, fldList, numflds, flds_scalar_name, flds_scala
14091409
! local variables
14101410
integer :: n
14111411
type(ESMF_Field) :: field
1412-
character(len=80) :: stdname
1412+
character(char_len) :: stdname
14131413
character(ESMF_MAXSTR) :: msg
14141414
character(len=*),parameter :: subname='(ice_import_export:fld_list_realize)'
14151415
! ----------------------------------------------

0 commit comments

Comments
 (0)