@@ -41,7 +41,7 @@ module coupler_types_mod
4141 use mpp_domains_mod, only: domain2D, mpp_redistribute
4242 use mpp_mod, only: mpp_error, FATAL, mpp_chksum
4343 use fms_string_utils_mod, only: string
44- use platform_mod, only: r4 _kind, r8 _kind, i8_kind
44+ use platform_mod, only: r4 _kind, r8 _kind, i8_kind, FMS_FILE_LEN, FMS_PATH_LEN
4545
4646 implicit none
4747 private
@@ -103,8 +103,8 @@ module coupler_types_mod
103103 character (len= 128 ) :: implementation = ' ' ! < implementation
104104 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
105105 integer :: atm_tr_index = 0 ! < atm_tr_index
106- character (len= 128 ) :: ice_restart_file = ' ' ! < ice_restart_file
107- character (len= 128 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
106+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
107+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
108108#ifdef use_deprecated_io
109109 type (restart_file_type), pointer :: rest_type = > NULL () ! < A pointer to the restart_file_type
110110 ! ! that is used for this field.
@@ -146,8 +146,8 @@ module coupler_types_mod
146146 character (len= 128 ) :: implementation = ' ' ! < implementation
147147 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
148148 integer :: atm_tr_index = 0 ! < atm_tr_index
149- character (len= 128 ) :: ice_restart_file = ' ' ! < ice_restart_file
150- character (len= 128 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
149+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
150+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
151151#ifdef use_deprecated_io
152152 type (restart_file_type), pointer :: rest_type = > NULL () ! < A pointer to the restart_file_type
153153 ! ! that is used for this field.
@@ -207,8 +207,8 @@ module coupler_types_mod
207207 real (r8 _kind), pointer , dimension (:) :: param = > NULL () ! < param
208208 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
209209 integer :: atm_tr_index = 0 ! < atm_tr_index
210- character (len= 128 ) :: ice_restart_file = ' ' ! < ice_restart_file
211- character (len= 128 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
210+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
211+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
212212#ifdef use_deprecated_io
213213 type (restart_file_type), pointer :: rest_type = > NULL () ! < A pointer to the restart_file_type
214214 ! ! that is used for this field.
@@ -253,8 +253,8 @@ module coupler_types_mod
253253 real (r8 _kind), pointer , dimension (:) :: param = > NULL () ! < param
254254 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
255255 integer :: atm_tr_index = 0 ! < atm_tr_index
256- character (len= 124 ) :: ice_restart_file = ' ' ! < ice_restart_file
257- character (len= 124 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
256+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
257+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
258258#ifdef use_deprecated_io
259259 type (restart_file_type), pointer :: rest_type = > NULL () ! < A pointer to the restart_file_type
260260 ! ! that is used for this field.
@@ -309,8 +309,8 @@ module coupler_types_mod
309309 real (r8 _kind), pointer , dimension (:) :: param = > NULL () ! < param
310310 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
311311 integer :: atm_tr_index = 0 ! < atm_tr_index
312- character (len= 128 ) :: ice_restart_file = ' ' ! < ice_restart_file
313- character (len= 128 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
312+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
313+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
314314 logical :: use_atm_pressure ! < use_atm_pressure
315315 logical :: use_10m_wind_speed ! < use_10m_wind_speed
316316 logical :: pass_through_ice ! < pass_through_ice
@@ -350,8 +350,8 @@ module coupler_types_mod
350350 real (r8 _kind), pointer , dimension (:) :: param = > NULL () ! < param
351351 logical , pointer , dimension (:) :: flag = > NULL () ! < flag
352352 integer :: atm_tr_index = 0 ! < atm_tr_index
353- character (len= 128 ) :: ice_restart_file = ' ' ! < ice_restart_file
354- character (len= 128 ) :: ocean_restart_file = ' ' ! < ocean_restart_file
353+ character (len= FMS_FILE_LEN) :: ice_restart_file = ' ' ! < ice_restart_file
354+ character (len= FMS_FILE_LEN) :: ocean_restart_file = ' ' ! < ocean_restart_file
355355 logical :: use_atm_pressure ! < use_atm_pressure
356356 logical :: use_10m_wind_speed ! < use_10m_wind_speed
357357 logical :: pass_through_ice ! < pass_through_ice
@@ -3076,15 +3076,15 @@ subroutine CT_register_restarts_2d(var, bc_rest_files, num_rest_files, mpp_domai
30763076 logical , optional ,intent (in ) :: ocean_restart ! < If true, use the ocean restart file name.
30773077 character (len=* ),optional ,intent (in ) :: directory ! < Directory where to open the file
30783078
3079- character (len= 80 ), dimension (max (1 ,var% num_bcs)) :: rest_file_names
3080- character (len= 80 ) :: file_nm
3079+ character (len= FMS_FILE_LEN ), dimension (max (1 ,var% num_bcs)) :: rest_file_names
3080+ character (len= FMS_FILE_LEN ) :: file_nm
30813081 logical :: ocn_rest
30823082 integer :: f, n, m
30833083
30843084 character (len= 20 ), allocatable , dimension (:) :: dim_names ! < Array of dimension names
30853085 character (len= 20 ) :: io_type ! < flag indicating io type: "read" "overwrite"
30863086 logical , dimension (max (1 ,var% num_bcs)) :: file_is_open ! < flag indicating if file is open
3087- character (len= 20 ) :: dir ! < Directory where to open the file
3087+ character (len= FMS_PATH_LEN ) :: dir ! < Directory where to open the file
30883088
30893089 if (var% set .and. var% num_bcs .gt. 0 ) then
30903090 if (associated (var% bc) .eqv. associated (var% bc_r4 )) then
@@ -3358,15 +3358,15 @@ subroutine CT_register_restarts_3d(var, bc_rest_files, num_rest_files, mpp_domai
33583358 logical , optional ,intent (in ) :: ocean_restart ! < If true, use the ocean restart file name.
33593359 character (len=* ),optional ,intent (in ) :: directory ! < Directory where to open the file
33603360
3361- character (len= 80 ), dimension (max (1 ,var% num_bcs)) :: rest_file_names
3362- character (len= 80 ) :: file_nm
3361+ character (len= FMS_FILE_LEN ), dimension (max (1 ,var% num_bcs)) :: rest_file_names
3362+ character (len= FMS_FILE_LEN ) :: file_nm
33633363 logical :: ocn_rest
33643364 integer :: f, n, m
33653365
33663366 character (len= 20 ), allocatable , dimension (:) :: dim_names ! < Array of dimension names
33673367 character (len= 20 ) :: io_type ! < flag indicating io type: "read" "overwrite"
33683368 logical , dimension (max (1 ,var% num_bcs)) :: file_is_open ! < Flag indicating if file is open
3369- character (len= 20 ) :: dir ! < Directory where to open the file
3369+ character (len= FMS_PATH_LEN) :: dir ! < Directory where to open the file
33703370 integer :: nz ! < Length of the z direction of each file
33713371
33723372 if (var% set .and. var% num_bcs .gt. 0 ) then
0 commit comments