Radaer api la side - part one run time#627
Open
Alan J Hewitt (alanjhewitt) wants to merge 51 commits into
Open
Radaer api la side - part one run time#627Alan J Hewitt (alanjhewitt) wants to merge 51 commits into
Alan J Hewitt (alanjhewitt) wants to merge 51 commits into
Conversation
…s into radaer_api_la_side
…s into radaer_api_la_side
iboutle
requested changes
Jul 15, 2026
iboutle
left a comment
Contributor
There was a problem hiding this comment.
Hi Alan,
I'd like to request a few more tests to understand the KGO change and be confident that it's okay.
I think you've narrowed the issue down to the re-writing of lines like:
- X(r_um) = A(r_def) + B(r_def) + C(r_def) + D(r_def)
as:
- X(r_um) = X(r_um) + A(r_def)
- X(r_um) = X(r_um) + B(r_def)
etc
My suspicion is that in the original method, the summation is computed at r_def precision, with the result being cast to r_um. Whilst in the new method, each separate addition will be done and cast to r_um.
Would you be able to try your new method as:
- X(r_um) = X(r_um) + real(A, r_um)
- X(r_um) = X(r_um) + real(B, r_um)
etc
i.e. explicitly cast the variables being added to the required precision before the summation happens.
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: Mohit Dalvi (@mcdalvi)
Code Reviewer:
I developed the original lfric to radaer functionality in 2020. Like a lot of developments back then, it was needed in a hurry and so I developed a fudged solution with technical debt.
We will need user flexibility soon to be able to run radaer with different user settings, hence this part one of two development.
In part one, I have introduced the user flexibility that is required for run time. Its already a very large change, and this is a natural break point for splitting a big PR.
Some hard-coded settings remain in the development (on the lfric_apps side the lists used by the case statement), which will be removed in the part two ticket to develop the initialisation stage functionality.
Note that all of the 32bit KGO changes result from bit level differences in addition of ukca_modal_vol_um. run2 before commit 03edbc0 replicated the previous addition method, and all KGO tests preserved original answers. In hindsight, it would have been better if i ran this test before updating the KGO files.
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - radaer_api_la_side/run3
Suite Information
Task Information
✅ succeeded tasks - 1594
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