Allow the land fraction to be flipped - #144
Merged
Pierre Siddall (Pierre-siddall) merged 4 commits intoAug 27, 2026
Merged
Conversation
Dan Copsey (DanCopsey)
requested a review
from Maggie (maggiehendry)
as a code owner
August 21, 2026 16:04
Dan Copsey (DanCopsey)
requested a review
from Giorgia (GiorgiaLine)
as a code owner
August 24, 2026 10:20
Maggie (maggiehendry)
approved these changes
Aug 24, 2026
Maggie (maggiehendry)
left a comment
Collaborator
There was a problem hiding this comment.
I can't see anything wrong with the code change. I was about to say that LFRic coupled Rose stem test needs to be run, but the Rose stem test there has l_use_land_fraction=.false.. You should probably still run it though and add it to the PR as it does use the Rivers-standalone code which has been changed here.
Pierre Siddall (Pierre-siddall)
approved these changes
Aug 26, 2026
Pierre Siddall (Pierre-siddall)
left a comment
Contributor
There was a problem hiding this comment.
Thanks Dan Copsey (@DanCopsey), as this is a relatively simple change which calls an ancillary remapping this looks good to head into testing to me.
Pierre Siddall (Pierre-siddall)
merged commit Aug 27, 2026
de9b713
into
MetOffice:main
5 checks passed
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
Allow the land fraction field (once read in from ancillary file) to be flipped so that the data is south to north to be consistent with the other ancillary fields.
Sci/Tech Reviewer: Maggie (@maggiehendry)
Code Reviewer: Pierre Siddall (@Pierre-siddall)
When I put in #89 I added land fractions into the rivers-standalone part of JULES to be read in from an ancillary file. However if the other input fields (from ancillary files) are flipped to be running from south to north (using the remap_ancil function) then the land fraction field gets missed out and remains north to south. This makes an inconsistency in the data and the model fails. This change fixes this by adding in the call to remap_ancil for the land fraction.
Code Quality Checklist
(Some checks are automatically carried out via the CI pipeline)
rose-meta/jules-sharedthen have you supplied a linked UM and LFRic Apps PR?Testing
trac.log
Test Suite Results - jules - jules_fix_river_land_fractions/run1
Suite Information
Task Information
✅ succeeded tasks - 676
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
Approvals
Please request all relevant approvals. See the CodeOwners.txt file for section owners.
Technical
Scientific
Sci/Tech Review
Please alert the code reviewer via a tag when you have approved the SR
Code Review