Draft
Conversation
29 tasks
This was referenced Mar 14, 2026
|
Your CLA signature was found on the base branch, but you appear to have modified the CONTRIBUTORS.md file in this PR. Please do not edit the CONTRIBUTORS.md file. If you have already signed the CLA, revert changes to the file and your signature will be picked up. |
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: @atb1995
Code Reviewer:
This PR implements the capability to represent orography with higher-order finite elements. This allows the heights of cell centres to be match the values defined in the orography ancillary files, and avoids loss of power in the orography from the process of averaging from W3 to W0 points. This has shown a significant improvement in NWP scores.
Please See
This branch is built on the changes in #277 and #179, and until those PRs are merged, the diff on this PR will also include the changes from those branches. I have created PRs in my own fork to show useful diffs for reviewing:
Linked-To
Blocked-By
This branch includes the changes from #277 and #179, which are necessary to use the increased coordinate order efficiently.
Details
The changes in this PR can be summarised as:
surface_altitudefield has a degree that is specified through a new namelist option (and is not inherited fromelement_order)orographynamelist, to make this more coherent by:n_orog_smoothinto theorographynamelist frominitializationw0_orography_mappinginto theorographynamelist and renaming it asw0_multigrid_mappingorography_orderoptioncoord_order=2,orography_order=2andw0_multigrid_mapping=.true.as default for the gungho_model, lfric_atm, lfric_coupled, linear_model and jedi_lfric_tests apps (which updates KGOs)surface_altitude_w0. Previously the W3 field was passed in here, which meant that the mapping from W3 to W0 and a deep halo exchange were duplicated for setting the orography for both the prime and shifted meshessurface_altitude_w0field has the appropriate element ordersurface_altitudefields on other meshes is handled appropriately with the new optionResults
Plots from the gungho_model and lfric_atm test suites for the changes in this PR are shown in the following PDFs. The only significant difference comes in the gungho_model DCMIP mountain test, which shows that the mountain is now being resolved properly.
The use of quadratic coordinate order has shown considerable improvement in NWP scores. For results, see:
Some timing results are shown in the following table. The change to use
coord_order=2will increase costs for the calculation of the runtime constants, and parts of the timestep that usechi:map_physics_fieldsand the conversions between the W2 wind field and Cartesian components for transport, but this table shows that the increase in runtime is small (1-3% of timestepping cost) and should be acceptable for the level of scientific improvement.coord_space='Wchi',coord_order=1coord_space='Wtheta',coord_order=1coord_space'Wtheta',coord_order=2Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - test_high_order_orog/run10
Suite Information
Task Information
✅ succeeded tasks - 1511
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