Fix writing and reading coupled checkpoints#505
Fix writing and reading coupled checkpoints#505Tim Graham (timgraham-Met) wants to merge 7 commits into
Conversation
Fix cpl chkpt sdm
…ll request MetOffice#505 goes on trunk. MetOffice#505 adds all the other coupling variables but inland basin flow will be missing from MetOffice#505.
Mike Hobson (mike-hobson)
left a comment
There was a problem hiding this comment.
This change (along with its core companion) fixes the checkpointing within coupled runs, so is important to get on main. It is clear and easy to understand code. There are some bits that we might want to think about improving in the future, but nothing important enough to delay getting this into the next LFRic release.
I am happy to approve this.
|
(Note: Tim Graham (@timgraham-Met) - I did a test merge onto main and ran the test suite and didn't see the failure you mentioned to me, so hopefully it will just go away when the change is brought up to head) |
| <field id="frozen_soil_moisture" name="frozen_soil_moisture" long_name="mass_fraction_of_frozen_water_in_saturated_soil_moisture" unit="1" domain_ref="face" axis_ref="soil_levels" /> | ||
| <!-- energy correction --> | ||
| <field id="temperature_correction_rate" name="temperature_correction_rate" long_name="temperature_rate_for_energy_correction" unit="K s-1" axis_ref="scalar_axis" /> | ||
| <field id="lf_icefrc" name="lf_icefrc" long_name="lf_icefrc" unit="1" domain_ref="face" axis_ref="sea_ice_categories" /> |
There was a problem hiding this comment.
Just one comment from me - this list is essentially a mix of things which are coming from coupler to atmosphere, and things going from atmosphere to coupler (the latter being the list of fields we need to checkpoint in gungho_model_mod). I wonder if it would make it easier to understand if the list were ordered as such, ie. group the fields coming in together (with a heading comment), and group the fields going out together (again with a heading comment)
PR Summary
Sci/Tech Reviewer: Mike Hobson (@mike-hobson)
Code Reviewer: mo-marqh
Checkpointing in the coupled model was broken at apps3.0 when the functionality was implemented to output checkpoints at any time step. This branch fixes that functionality and ensures that in coupled mode checkpoints can only be output at coupling timesteps when it won't affect the results of the model.
Code Quality Checklist
Testing
This development has been tested in the GC6 climate workflow (it won't run without it). There are plans in place to improve testing of the coupled model including testing restartability but we would like to fix the broken behaviour more quickly.
trac.log
Test Suite Results - lfric_apps - apps_fix_cpl_chkpt/run1
Suite Information
Task Information
✅ succeeded tasks - 1511
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