Skip to content

Allow namelist defaults to apply for phys versions greater than or less than a given version #454

Open

Description

@billsacks

As we support more and more versions, I feel like we'll (at least eventually) want the ability for the namelist defaults xml file to allow us to say things like: "For CLM versions <= clm5.0, use foo = 3; for CLM versions > clm5.0, use foo = 7". Currently, we need to explicitly list the defaults for every phys version, which is going to be hard to maintain and error-prone long-term.

I feel like it will be useful for this purpose to separate the phys version into two pieces: a name and a version number. The name will be something like "clm" or "nwp" (the former for the "climate" version of CTSM, the later for the numerical weather prediction version). The version will be numeric.

I'm then imagining we could have a namelist default entry that looks like:

<foo phys="clm" version="<= 5.0">3</foo>
<foo phys="clm" version="> 5.0">7</foo>

or

<foo phys="clm" version_le="5.0">3</foo>
<foo phys="clm" version_gt="5.0">7</foo>

Activity

  1. added
    enhancementnew capability or improved behavior of existing capability
    on Jul 27, 2018
  2. added a commit that references this issue on Aug 26, 2019
  3. billsacks commented on Jan 14, 2020

    @billsacks
    MemberAuthor

    Blocked by #585

  4. ekluzek commented on Apr 30, 2024

    @ekluzek
    Contributor

    Another thing that ParamGen could solve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked: dependencyWait to work on this until dependency is resolvedenhancementnew capability or improved behavior of existing capability

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions