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

Add a restart test to cosine bell #251

Merged
merged 11 commits into from
Dec 23, 2024
Merged

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented Dec 5, 2024

This merge adds a restart test to the cosine bell configuration. This requires some changes to the validation framework for comparing variables to support the translation that Polaris performs between Omega native dimension and variable names and those for MPAS-Ocean that the Polaris ocean component uses generally.

A small amount of related cleanup is also included.

Checklist

  • User's Guide has been updated
  • Developer's Guide has been updated
  • API documentation in the Developer's Guide (api.md) has any new or modified class, method and/or functions listed
  • Documentation has been built locally and changes look as expected
  • Testing comment in the PR documents testing used to verify the changes
  • New tests have been added to a test suite

@xylar xylar added enhancement New feature or request framework Changes relating to the polaris framework as opposed to individual tests or analysis ocean Related to ocean tests or analysis labels Dec 5, 2024
@xylar xylar self-assigned this Dec 5, 2024
@xylar xylar added the Omega PR required The polaris changes won't work with the current Omega submodule and require an update label Dec 5, 2024
@xylar
Copy link
Collaborator Author

xylar commented Dec 5, 2024

The restart test case nearly works but needs a fix for E3SM-Project/Omega#181.

@xylar
Copy link
Collaborator Author

xylar commented Dec 11, 2024

It works!!! Using a test merge of E3SM-Project/Omega#184 with the current Omega develop, the cosine bell restart test passes on Chrysalis!

@xylar xylar added Omega PR finished The polaris changes required an update to the Omega submodule and this is now finished and removed Omega PR required The polaris changes won't work with the current Omega submodule and require an update labels Dec 16, 2024
component=component, name=name, subdir=subdir,
mesh=base_mesh_step, init=init_step,
refinement_factor=refinement_factor,
refinement=refinement)
Copy link
Collaborator

@cbegeman cbegeman Dec 20, 2024

Choose a reason for hiding this comment

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

Suggested change
refinement=refinement)
refinement=refinement,
do_restart=name == 'restart_run')

Since you end up using the logical do_restart in dynamic_model_config, should we just use this as an argument rather than checking step names?

Copy link
Collaborator

@cbegeman cbegeman left a comment

Choose a reason for hiding this comment

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

I think this looks great! I ran successfully with MPAS-O and Omega on chrys, intel. I trust you to do the items on the checklist

@xylar xylar marked this pull request as ready for review December 23, 2024 13:38
@xylar xylar force-pushed the cosine-bell-restart branch from 0cb3690 to ee6d56d Compare December 23, 2024 13:38
Add a `do_restart` attribute to keep track of which runs are
restart runs, rather than using the step name.
@xylar
Copy link
Collaborator Author

xylar commented Dec 23, 2024

Testing

I successfully ran both the icos and qu cosine-bell restart tests with both MPAS-Ocean and Omega on Chrysalis.

@xylar
Copy link
Collaborator Author

xylar commented Dec 23, 2024

I need to take care of documentation and adding tests to suites before I merge.

Update cosine_bell suite to include all tests.

Remove cosine_bell_cached_init suite, which has not been well
maintained.
@xylar
Copy link
Collaborator Author

xylar commented Dec 23, 2024

Okay, docs and test suites are up-to-date.

@xylar xylar force-pushed the cosine-bell-restart branch from 2ac8c51 to 2b6571d Compare December 23, 2024 15:52
@xylar xylar merged commit 018ae1a into E3SM-Project:main Dec 23, 2024
5 checks passed
@xylar xylar deleted the cosine-bell-restart branch December 23, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request framework Changes relating to the polaris framework as opposed to individual tests or analysis ocean Related to ocean tests or analysis Omega PR finished The polaris changes required an update to the Omega submodule and this is now finished
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants