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

EAMxx: simplify branch runs and adding new output streams #7063

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bartgol
Copy link
Contributor

@bartgol bartgol commented Feb 26, 2025

Simplify workflow for branch runs, and, in general, runs where new output streams are added upon restart.

[BFB]


Right now, for branch runs, the user needs to add the entry Perform Restart: false entry in the Restart sublist of their output yaml file. This allows EAMxx to skip the look for the rhist file. However, the user must later remove this entry, so that upon subsequent restarts the stream IS restarted. This is confusing, and may be overlooked.

This PR automatically handles this kind of details. In particular:

  • for a branch run, we automatically ignore the rhist file, without need of explicitly adding yaml entries
  • for streams added after restarts (not branch runs!), replace Perform Restart: false with skip_restart_if_rhist_not_found: true. This makes it simpler, since this param does not need to be removed after the 1st "post-restart-run"

@bartgol bartgol added BFB PR leaves answers BFB EAMxx PRs focused on capabilities for EAMxx code usability labels Feb 26, 2025
@bartgol bartgol requested a review from AaronDonahue February 26, 2025 22:10
@bartgol bartgol self-assigned this Feb 26, 2025
@@ -217,6 +217,7 @@ class AtmosphereDriver
util::TimeStamp m_run_t0;
util::TimeStamp m_case_t0;
RunType m_run_type;
bool m_branch_run = false;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about adding a new value to RunType, but it required a few more changes across the library. Maybe that's more appropriate though?

@bartgol bartgol requested a review from tcclevenger February 26, 2025 22:12
Copy link

github-actions bot commented Feb 26, 2025

PR Preview Action v1.6.0

🚀 View preview at
https://E3SM-Project.github.io/E3SM/pr-preview/pr-7063/

Built to branch gh-pages at 2025-02-26 22:31 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB code usability EAMxx PRs focused on capabilities for EAMxx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant