Only use mp_czero_rp if using the RP2B scheme#482
Open
Marc Stringer (marcstring) wants to merge 2 commits into
Open
Only use mp_czero_rp if using the RP2B scheme#482Marc Stringer (marcstring) wants to merge 2 commits into
Marc Stringer (marcstring) wants to merge 2 commits into
Conversation
Author
i_rp_scheme=0 scheme unavailable at LFRicIn https://code.metoffice.gov.uk/trac/UKESM/wiki/ticket/1101/lfric_converse I've recorded an e-mail conversation between me and Anne McCabe where she says that the |
paulfield2024
approved these changes
May 15, 2026
Paul Barrett (paul-barrett)
approved these changes
May 15, 2026
Paul Barrett (paul-barrett)
left a comment
There was a problem hiding this comment.
seems fine, as UM
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: yongmingtang
Code Reviewer: Cameron Bateman (@cameronbateman-mo)
MetOffice/um#73 describes how UM ticket #6980 (https://code.metoffice.gov.uk/trac/um/ticket/6980) broke the option
l_rp2=trueandi_rp_scheme=0, which is used by our prototype UKESM2 model. Our prototype UKESM2 uses the UM, but during the approval process Paul Barrett has pointed out that the fix in MetOffice/um#73 should also be applied to LFRic, hence this pull request.MetOffice/um#73 modifies three FORTRAN files: large_scale_cloud/bm_calc_tau.F90, large_scale_precipitation/mphys_turb_gen_mixed_phase.F90 and stochastic_physics/stph_rp-stph_rp2.F90. The first two files can be found in lfric_apps, but not the third (stochastic_physics/stph_rp-stph_rp2.F90), so I've only mirrored the changes from MetOffice/um#73 for large_scale_cloud/bm_calc_tau.F90 and large_scale_precipitation/mphys_turb_gen_mixed_phase.F90 for the lfric_apps branch here.
I don't work on LFRic and I'm not aware of any LFRic jobs which can be used to test the option
l_rp2=trueandi_rp_scheme=0, so my testing for lfric_apps is limited to just running rose-stem, which passes fine.Code Quality Checklist
Testing
*1 No extra tests here. Protection of the option
l_rp2=trueandi_rp_scheme=0is being added to our UKESM2 UM rose-stem jobs (UKESM-curr & UKESM-beta).*2 Not applicable
trac.log
Test Suite Results - lfric_apps - test_lfric_mp_czero_fix/run1
Suite Information
Task Information
✅ succeeded tasks - 1511
Security Considerations
Performance Impact
*3 This is just expanding a couple of
ifstatements for routines not called that often. Impact will be negligible.AI Assistance and Attribution
*4 No AI here
Documentation
*5 No documentation update required
PSyclone Approval
*6 Not applicable
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review