-
Notifications
You must be signed in to change notification settings - Fork 58
Extra fields need to be written to checkpoint dump for lfric_atm glomap_mode dust_and_clim #202
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
base: main
Are you sure you want to change the base?
Conversation
|
Hello @stevemullerworth! 👋 Thank you for your contribution. Since this is your first time contributing to this repository, we ask that you sign our Contributor Licence Agreement (CLA). To agree to the CLA, please add your details (GitHub username, Real Name, Affiliation, and Date) to the CONTRIBUTORS.md file (create one, if required) in the development branch for this PR. After signing the CLA, you won't need to do this again for future PRs. |
alanjhewitt
left a comment
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.
I am happy with the code changes here - they are consistent with the ticket description.
I didnt review the new startdump file, I think Steve may need to get approval from Ian Boutle for this replacement file.
Also, at the time this development is merged tey will need to be put in the official directory.
SciTech approved.
Passing to code review.
@stevemullerworth has got approval from @iboutle regarding this file |
|
Steve has created a new start dump for this configuration. Following discussion with the SSD team this has been installed in: |
PR Summary
Sci/Tech Reviewer: @alanjhewitt
Code Reviewer: @harry-shepherd
On a new run (NRUN), lfric_atm may read ancillary files some of which contain fixed boundary values. Three of these are
dust_mrel,soil_clayandsoil_sand, which are used with certain glomap settings. However, continuation runs (CRUNs) do not read such ancillaries. Therefore, the fields need to be written to and read from the checkpoint dump.Currently, several CRUN tests are therefore running with values for these fields set by initialisation in the code rather than input values. An effect of this is that an NRUN+CRUN will not match the results of an NRUN of the same total length. A failure of a nrun-crun test would show up in the test suite except for the fact that the CRUN in the relevant test is only one timestep long, and differences don't appear in the checksum file till the second timestep.
This fix changes the logic in
create_physics_prognosticsto additionally read/write these checkpoint fields ifglomap_modeis set todust_and_clim, which affects lfric_atm nwp_gal9 configurations. The change involved some slight reorganisation of the order of the fields to reduce the risk of thecheckpoint_flagvalue being incorrectly overwritten for other fields.Three of the DA jobs are initialised from checkpoint dumps rather than start dumps. Therefore, the existing checkpoint dumps need to be updated with these fields. Current changes point to an updated file in the developer's data directory. This file would need to be incorporated in BIG_DATA. This new file was generated by using
ncksanncotool to add the three fields to the existing checkpoint dump. I checked with Ian Boutle who was happy with this approach.Before NRUN/CRUN comparability testing can be improved (to prevent future issues that show up after one timestep) PR #193 also needs to be committed. If #193 is committed, then this issue could extend the length of the nwp_gal9 nrun-crun test to validate this change.
CLA was signed in #193, I expect to merge on main with this change, so won't sign CLA just yet.
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - checkpoint_dust_forpr2/run3
Suite Information
Task Information
✅ succeeded tasks - 1454
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review