Conversation
…l conditions; use 'read_state' and 'write_state' instead of 'read_checkpoint' and 'write_checkpoint' so that the fields read from the input are stored in memory with a default order
There was a problem hiding this comment.
This PR looks totally fine, and the plots are good evidence that things are working as expected (as compared with the plots in #201 at #201 (comment))
I would like to ask a couple of questions before we go to code review:
These plots are from the output created by this branch. Once this branch and the code in #201 are together, I would also like to plot the results using more than one CPU and compare (unless you want to merge this PR and #201 in one single PR). The issue that the restart dump was not written was not spotted in #55 because checksums were still being generated and were OK, and we were concentrated in the LBC output not the ICs output. We did not realise that the output was not right because until we started working on #201 we were just plotting the fields theta, zh, and rho, which were not multidata or multilevel 2D, and therefore were processed properly. |
stevemullerworth
left a comment
There was a problem hiding this comment.
Thanks. SR approved












PR Summary
Sci/Tech Reviewer: @stevemullerworth
Code Reviewer:
There are just two simple changes to make things work in lfric2lfric:
Code Quality Checklist
Testing
The new code changes KGOs, given that multidata fields and multilevel fields that are stored a 2D vectors in the input files are now properly processed. Note that only the regional tests change, as the input data for running global tests just contain 1D fields without multidata. In the KGO files that change, only changes in relevant fields are present, as expected. I will provide some plots below demonstrating that the code works.
trac.log
Test Suite Results - lfric_apps - lfric2lfric_read_order/run1
Suite Information
Task Information
❌ failed tasks - 6
⌛ waiting tasks - 2
There are some failing tests, but I believe they fall in the trunk too, given that the changes here should only affect lfric2lfric jobs.
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