Skip to content

Commit 76e2855

Browse files
Fieldsmanager lengthremoval (#1702)
1 parent 33b8fbd commit 76e2855

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

coupler/gex.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ module gex_mod
105105
use field_manager_mod, only: MODEL_LAND, MODEL_ATMOS, MODEL_OCEAN, NUM_MODELS
106106
use field_manager_mod, only: fm_list_iter_type, fm_dump_list, fm_field_name_len, &
107107
fm_type_name_len, fm_get_length,fm_loop_over_list, fm_init_loop, &
108-
fm_string_len, fm_get_current_list, fm_path_name_len, fm_change_list, &
108+
fm_string_len, fm_get_current_list, fm_change_list, &
109109
field_manager_init
110110
use fm_util_mod, only: fm_util_get_real, fm_util_get_logical, fm_util_get_string
111111
use mpp_mod, only: mpp_root_pe, mpp_pe
112112
use fms_string_utils_mod, only: string
113+
use platform_mod, only: FMS_PATH_LEN
113114

114115
implicit none ; private
115116

@@ -193,7 +194,7 @@ subroutine gex_read_field_table(listroot,MODEL_SRC,MODEL_REC)
193194
type(fm_list_iter_type) :: iter ! iterator over the list of tracers
194195
character(fm_field_name_len) :: name = '' ! name of the tracer
195196
character(fm_type_name_len) :: ftype ! type of the field table entry (not used)
196-
character(fm_path_name_len) :: listname ! name of the field manager list for each tracer
197+
character(FMS_PATH_LEN) :: listname ! name of the field manager list for each tracer
197198

198199
integer :: n
199200

field_manager/field_manager.F90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,6 @@ module field_manager_mod
246246

247247
!> The length of a character string representing the field name.
248248
integer, parameter, public :: fm_field_name_len = 48
249-
!! TODO this should be removed in favor of the global FMS_PATH_LEN
250-
!! when possible, currently used in ocean_BGC and land_lad2
251-
!> The length of a character string representing the field path.
252-
integer, parameter, public :: fm_path_name_len = FMS_PATH_LEN
253249
!> The length of a character string representing character values for the field.
254250
integer, parameter, public :: fm_string_len = 1024
255251
!> The length of a character string representing the various types that the values of the field can take.

libFMS.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ module fms
291291
fms_field_manager_fm_find_methods => fm_find_methods, &
292292
fms_field_manager_fm_copy_list => fm_copy_list, &
293293
fms_field_manager_fm_field_name_len => fm_field_name_len, &
294-
fms_field_manager_fm_path_name_len => fm_path_name_len, &
294+
!fms_field_manager_fm_path_name_len => fm_path_name_len, &
295295
fms_field_manager_fm_string_len => fm_string_len, &
296296
fms_field_manager_fm_type_name_len => fm_type_name_len, &
297297
NUM_MODELS, NO_FIELD, MODEL_ATMOS, MODEL_OCEAN, MODEL_LAND, MODEL_ICE, MODEL_COUPLER, &
@@ -702,7 +702,7 @@ module fms
702702

703703
!> platform
704704
use platform_mod, only: r8_kind, r4_kind, i8_kind, i4_kind, c8_kind, c4_kind, &
705-
l8_kind, l4_kind, i2_kind, ptr_kind
705+
l8_kind, l4_kind, i2_kind, ptr_kind, FMS_PATH_LEN
706706

707707
!> random_numbers
708708
use random_numbers_mod, only: fms_random_numbers_randomNumberStream => randomNumberStream, &

0 commit comments

Comments
 (0)