-
Notifications
You must be signed in to change notification settings - Fork 19
XIOS: Separate out testing of restarts and diagnostics #1010
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
Open
joewallwork
wants to merge
7
commits into
develop
Choose a base branch
from
issue977_xios-diagnostic-averaging
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+562
−168
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This was referenced Jan 8, 2026
joewallwork
commented
Jan 13, 2026
Comment on lines
+199
to
+213
| #ifdef USE_XIOS | ||
| // Account for the fact that XIOS writes dimensions differently if only one | ||
| // discretisation is written out. If the dimension is still null at this point then we | ||
| // assume that the only discretisation used is HDomain-based, i.e., HField, DGField, or | ||
| // DGSField. | ||
| if (dim.isNull()) { | ||
| if (dimensionSpec.name == "x_dim") { | ||
| dim = ncFile.getDim("x"); | ||
| } else if (dimensionSpec.name == "y_dim") { | ||
| dim = ncFile.getDim("y"); | ||
| } else { | ||
| continue; | ||
| } | ||
| } | ||
| #endif |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed by #1015, which ensures that XIOS never writes out files with x or y as dimensions.
joewallwork
added a commit
that referenced
this pull request
Jan 13, 2026
joewallwork
commented
Jan 13, 2026
Comment on lines
+965
to
+971
| { "yx", ModelArray::Type::H }, | ||
| { "ydimxdim", ModelArray::Type::H }, | ||
| { "y_dimx_dim", ModelArray::Type::H }, | ||
| { "yxdg_comp", ModelArray::Type::DG }, | ||
| { "ydimxdimdg_comp", ModelArray::Type::DG }, | ||
| { "y_dimx_dimdg_comp", ModelArray::Type::DG }, | ||
| { "yxdgstress_comp", ModelArray::Type::DGSTRESS }, |
Contributor
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes will also be reverted in #1015.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
XIOS: Separate out testing of restarts and diagnostics
Fixes #977
Fixes #1003
Refinement of #1002
Task List
Test Description
This PR separates the XIOS reading and writing tests out by type. In addition, we add a read test for the diagnostic outputs and check that they are time-averaged.
Change Description
Code changes are made to account for the case where only one XIOS domain is used when writing. This is required due to an unfortunate consequence of the way XIOS appends the domain name only if there are two or more domains.
In detail: if only one domain type is used then the output file will use
xandydimensions, rather than the versions appended with_<dimName>. We account for this by assuming thatxandyimplyx_dimandy_dimif encountered in an input file.Documentation Impact
n/a
Pre-Request Checklist