Skip to content

Remove setting of MOSART_MODE from buildnml #48

Description

@ekluzek

In mosart1_0_44 I added an awkward change where MOSART_MODE gets set in buildnml.

Some comments on this are here:

#46 (comment)

We need to decide on a better solution and bring that in when we can.

Activity

  1. self-assigned this
    on Nov 2, 2021
  2. ekluzek commented on Nov 3, 2021

    @ekluzek
    ContributorAuthor

    @billsacks notes there is likely an order dependence in the current operation which is bad. That could be removed by moving the change to buildlib, but it's still weird to have xml variables changed by buildlib.

  3. billsacks commented on Nov 3, 2021

    @billsacks
    Member

    @ekluzek - I never addressed your initial question about having this in buildlib vs. buildnml. Since CLM_ACCELERATED_SPINUP is defined in env_run.xml, it feels wrong to have some dependence on it in buildlib, since then changes after building wouldn't be captured. So I think buildnml is better than buildlib, but both seem problematic.

  4. ekluzek commented on Nov 3, 2021

    @ekluzek
    ContributorAuthor

    Ahhh yes. One problem is actually that MOSART_MODE is in env_build, but CLM_ACCELERATED_SPINUP is in env_run. So neither way is technically correct. But, you could argue that since MOSART_MODE is env_build it should be in buildlib. And I suppose we could move CLM_ACCELERATED_SPINUP in env_build as well. But, I still agree that neither way is good here. I do think putting it in env_build removes the potential order dependence issue that you brought up though.

    We'll talk more about this tomorrow. I hope we can come up with something that feels better all around.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions