ESCOMP / ESCOMP/CTSM

Namelist defaults with line breaks in the namelist_defaults_*.xml files need to have special handling

Open
#3,208 0 comments 0 reactions 0 assignees View on GitHub
b4b code health devops
Dominant language
Fortran
Stars
352
Forks
361
Avg merge
6d 6h
Merged PRs (30d)
8

Description

### Brief summary of bug

The build-namelist explicitly removes newlines for settings when handled in test-mods or user-mods (in the user_nl_* files) or in CLM_NAMELIST_OPTS. However, it doesn't do this when newlines are added to the namelist_defaults XML files. In ctsm5.3.051 a new function was added to handle this for megan_specifier and drydep_list called remove_newlines.

This same issue **could** come up for other variables and possibly what really should happen is that this just always be done for all variables.

### General bug information

**CTSM version you are using:** ctsm5.3.051
**Does this bug cause significantly incorrect results in the model's science?** No

**Configurations affected:** namelist defaults with values that span more than one line of text

### Details of bug

See the comment here that came up when @slevis-lmwg and I discussed this:

https://github.com/ESCOMP/CTSM/pull/3125/files#r2114959780

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.