Update LFRic2LFric to store unique names for it's source and destination meshes - #729
Open
Ricky Wong (mo-rickywong) wants to merge 8 commits into
Open
Conversation
29 tasks
Ricky Wong (mo-rickywong)
marked this pull request as ready for review
August 27, 2026 07:37
Ricky Wong (mo-rickywong)
requested a review
from Lottie Turner (mo-lottieturner)
as a code owner
August 27, 2026 07:37
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
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.
PR Summary
Sci/Tech Reviewer: cjohnson-pi
Code Reviewer: Matthew Hambley (@MatthewHambley)
Updates LFRic2Lfric code to use core changes in MetOffice/lfric_core#452 . These changes, along with those in the linked PR should allow LFRic2Lfric to use generated meshes for re-gridding, even if the meshes where identically named in the seprate mesh input files.
Linked PRs
Code Quality Checklist
Testing
Canned test in lfric2fric shows that the source and destination meshes are prepended with
srcanddstby lfric2lfric. This will satisfy the requirement for unique mesh name in the mesh collections, even if the input files have meshes named the same.Note:
A suitable test case for lfric2lfric to use where meshes of the same name are used in source and destination mesh files. The canned lfric2lfric test was modified so that it would attempt to read the same mesh for source and destination. i.e.
This failed in XIOS during the context creation of the output file. This test is out of scope, but may point to further work on lfric2lfric wrt XIOS output.
trac.log
Test Suite Results - lfric_apps - Apps_lfric2lfric_in_and_out/run1
Suite Information
Task Information
✅ succeeded tasks - 1218
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