Inland basin flow coupling and use land fractions on rivers grid - #89
Conversation
…rac/jules/wiki/ticket/t1528/SciTechReview section: 'Updated review 11/09/2025'
|
I'm on leave currently. I'll need to review when I return on 23rd April. |
|
I have applied all the sci/tech review comments from the documentation issue in JULES_docs_PR79. I have applied most of the sci/tech review comments in the JULES FCM ticket #1528 – See section that starts with “Updated review 11/09/2025”. I have repeated this below and added my replies:
I have done this and added the text
The reason for this is that in UM-JULES NWP models the rivers are turned off and therefore we don’t know what the l_inland switch is set to. It might be on but not doing anything as rivers is turned off. In this scenario we don’t want to simply copy it across. I think the coding that I have done is correct and only set the new jules_hydrology/l_inland to true when l_rivers is true and jules_rivers/l_inland is true. Therefore I don’t think I need to change anything here.
I have done this.
This has already been done.
This is already done in initialisation/standalone/ancillaries/init_rivers_props_mod.F90 (lines 389 to 403) where it compares the grids to make sure they are consistent. I don’t think this needs to be done twice. Also if I were to put such a check in init_rivers_process_data_mod.F90 then I would need to put in the plumbing for the land fraction grids to be passed all the way down to init_rivers_process_data_mod.F90 which would be a bit messy. Shouldn’t this be avoided for just one check that is already done elsewhere?
Thanks for spotting that. I have removed the extra /
I have removed the Superflous "USE"
In the coupled model adding the inland_outflow_rp output diagnostic will not change results as coupled models have inland_outflow in the namcouple file and therefore l_inland_outflow will already be True. This warning is for the case where JULES is run uncoupled and someone is analysing the outflow_per_river diagnostic and then adds the inland_outflow_rp diagnostic and is surprised when the outflow_per_river diagnostic changes. This is probably quite rare so this warning will hardly be generated. If I change it to the suggested setup then this will always appear in coupled models and I think we are trying to reduce the amount of warning messages.
The outputting of the inland_outflow diagnostic is independent of whether or not outflow_per_river is in the diagnostic list. You can take out outflow_per_river from the diagnostic list and still be able to output inland_outflow fine. |
Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
…pling_mod.F90 Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
…pling_mod.F90 Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
|
Hi Maggie. I have applied your suggested changes to the jules documentation and tried to make it. There was one slight issue which I fixed. I have checked all the changes appear correct. I have moved the final html directory so if you want to have a look then just send me a private message. |
James Bruten (james-bruten-mo)
left a comment
There was a problem hiding this comment.
Macro looks good
|
Hi Maggie, |
Maggie (maggiehendry)
left a comment
There was a problem hiding this comment.
Just a few small changes to rescue formatting of JULES user guide & fix url in metadata.
|
|
||
| !############################################################################## | ||
|
|
||
| SUBROUTINE check_ancil_rivers( dir_mouth, dir_inland_drainage, & |
There was a problem hiding this comment.
I'm still not convinced that this is doing the correct check, but we can tweak it if need be when the LFRic apps Rose stem tests are added.
Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
Co-authored-by: Maggie <145924708+maggiehendry@users.noreply.github.com>
Maggie (maggiehendry)
left a comment
There was a problem hiding this comment.
Thanks Dan Copsey (@DanCopsey). Good to go now 😄.
…data_mod.F90 Co-authored-by: Erica Neininger <107684099+ericaneininger@users.noreply.github.com>
Erica Neininger (ericaneininger)
left a comment
There was a problem hiding this comment.
Thanks Dan, approving, pending outstanding code owner approval.
1ea67b4
into
MetOffice:main
PR Summary
Sci/Tech Reviewer: Maggie (@maggiehendry)
Code Reviewer: Erica Neininger (@ericaneininger)
Pass inland basin flow from the rivers (TRIP) to LFRic via OASIS. To get this to conserve water we need to determine if there is any ocean in each TRIP grid point where there is inland basin flow. Therefore we need to pass land fractions into the standalone-TRIP part of JULES. If there is any ocean then pass the inland basin flow to the ocean (alongside river outflow). If there is no ocean then pass the inland basin flow to soil moisture (via LFRic).
Code Quality Checklist
(Some checks are automatically carried out via the CI pipeline)
readability of the code
rose-meta/jules-sharedthen have you supplied a linked UM PR?Testing
stem suites
acceptable (eg. kgo changes)
tests, unit tests, etc.)
trac.log
Test Suite Results - jules - jules_test_inland_flow/run1
Suite Information
Task Information
❌ failed tasks - 2
⌛ waiting tasks - 2
Security Considerations
Performance Impact
performance measurements have been conducted
AI Assistance and Attribution
of Generative AI tool name (e.g., Met Office Github Copilot Enterprise,
Github Copilot Personal, ChatGPT GPT-4, etc) and I have followed the
Simulation Systems AI policy
(including attribution labels)
Documentation
confirmed that it builds correctly
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