Skip to content

Commit

Permalink
Merge branch 'development' into develop/optional-mpas-features
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanchihwang committed Jan 30, 2025
2 parents 016db43 + ca692f3 commit e97fd3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/data/write_init_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,11 @@ def write_ic_params(outfile, host_vars, ic_names, registry_constituents):
else:
max_slen = 0
# end if
# Extend max_slen if any constituent names are longer
if registry_constituents:
max_slen = max(max_slen, max(len(x) for x in registry_constituents))
# end if

outfile.write(f"integer, public, parameter :: std_name_len = {max_slen}", 1)

outfile.blank_line()
Expand Down

0 comments on commit e97fd3c

Please sign in to comment.