Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad XML entry in namelist_defaults_pop.xml #16

Open
mnlevy1981 opened this issue Sep 4, 2019 · 0 comments
Open

Bad XML entry in namelist_defaults_pop.xml #16

mnlevy1981 opened this issue Sep 4, 2019 · 0 comments

Comments

@mnlevy1981
Copy link
Collaborator

Description of the issue:

The following block of code in bld/namelist_files/namelist_defaults_pop.xml doesn't behave as expected:

<sfwf_weak_restore ocn_grid="gx1v7"  >0.0115</sfwf_weak_restore>
<sfwf_weak_restore ocn_grid="gx1v7"  datm_mode="CORE_IAF_JRA">0.046</sfwf_weak_restore>
<sfwf_weak_restore ocn_grid="gx1v7"  ocn_onedim="TRUE">0.0</sfwf_weak_restore>

build-namelist looks at all entries where every attribute matches, and then takes the value corresponding the entry with the most matches. Unlike in #15, if multiple entries match the same number of attributes, the namelist generation tool defaults to the FIRST item in the list. So in this case, if you run with the gx1v7 grid, CORE_IAF_JRA forcing, and POP in 1D mode, sfwf_weak_restore = 0.046. We want sfwf_weak_restore = 0.0 whenever running in 1D mode, regardless of forcing... so the last two lines in the block above should be swapped.

Version:

  • CESM: 2.1 and the 2.2 development branches
  • POP2: cesm2_1_x_rel and master
    Note that JRA forcing is not available in CESM 2.0, so that version of the code is not affected.

Machine/Environment Description:

Discovered on cheyenne during a code review with @klindsay28 but problem should be evident on any machine

Any xml/namelist changes or SourceMods:

None

@mnlevy1981 mnlevy1981 changed the title Bad xml entry in namelist_defaults_pop.xml Bad XML entry in namelist_defaults_pop.xml Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant