Replace copy_field_alg_mod with real_to_real_x builtin#403
Replace copy_field_alg_mod with real_to_real_x builtin#403Alistair Pirrie (mo-alistairp) wants to merge 7 commits intoMetOffice:mainfrom
Conversation
DrTVockerodtMO
left a comment
There was a problem hiding this comment.
Code owner review passed!
Thomas Bendall (tommbendall)
left a comment
There was a problem hiding this comment.
Just some very minor style suggestions involving spacings in invokes to have these calls be consistent with the style in the rest of the file. Otherwise looks good!
science/gungho/source/algorithm/runtime_constants/limited_area_constants_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/control/transport_field_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/control/transport_field_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/control/transport_rho_times_field_alg_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/control/transport_rho_times_field_alg_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/mol/wt_advective_update_alg_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/sl/compute_sl_coefficients_alg_mod.x90
Outdated
Show resolved
Hide resolved
Co-authored-by: Thomas Bendall <14180399+tommbendall@users.noreply.github.com>
Good spot, I've applied all the changes |
Thomas Bendall (tommbendall)
left a comment
There was a problem hiding this comment.
Thanks for making those changes!
science/gungho/source/algorithm/transport/common/calc_dep_pts_alg_mod.x90
Outdated
Show resolved
Hide resolved
science/gungho/source/algorithm/transport/common/calc_dep_pts_alg_mod.x90
Outdated
Show resolved
Hide resolved
Benjamin Went (MetBenjaminWent)
left a comment
There was a problem hiding this comment.
I've commented a few lines which might follow a CO suggestion made earlier?
However otherwise changes look good, I've checked the reversal of the ordering of the two fields in the change from call to invoke and they are correct, see the docs here:
https://psyclone.readthedocs.io/en/latest/user_guide/lfric.html#real-to-real-x
SR Approved - Noting that developer may include comments, but are not a blocker for the ticket
|
Thanks Benjamin Went (@MetBenjaminWent), I've made those style fixes |
PR Summary
Sci/Tech Reviewer: Benjamin Went (@MetBenjaminWent)
Code Reviewer: Andrew Coughtrie (@andrewcoughtrie)
PSyclone has introduced the builtin
real_to_real_x. This allows us to removecopy_field_alg_mod. Replacing this helps reduce technical debt and allow for more potential optimisation. Note that the arguments have swapped order to match the standard where outputs occur first.The PSyKAl-lite code originates in LFRic core. Hence, this ticket blocks the LFRic core PR, as the PSyKAl-lite cannot be removed before we remove references to it in LFRic apps.
towards MetOffice/lfric_core/316 (MetOffice/lfric_core#316)
blocks MetOffice/lfric_core/317 (MetOffice/lfric_core#317)
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - replace_copy_field_alg_mod_lfric_apps/run1
Suite Information
Task Information
✅ succeeded tasks - 1512
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