-
Notifications
You must be signed in to change notification settings - Fork 38
New function space options for coordinate fields #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
thomasmelvin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the changes look good.
As a comment for future development I think it would be good if correctly specified the element order when creating functions spaces (instead of being built on a single element order for the derahm complex as was originally envisioned).
i.e. The lowest order W0 space would be:
w0_fs = function_space_collection%get_fs(mesh, 1, 1, W0)
and our default Wtheta space would be
wt_fs = function_space_collection%get_fs(mesh, 0, 1, Wtheta)
PR Summary
Sci/Tech Reviewer: @thomasmelvin
Code Reviewer:
This adds two new options for the function spaces used by the coordinate fields:
When
Wthetais used as the function space, the vertical coordinate order is kept as 0, making the coordinates linear in the vertical. These options are an optimisation to the coordinate fields, which will facilitate us moving tocoord_order=2which gives a significant boost in NWP score:Wthetaspace allows us to have fewer DoFs per cell (see below)Linked to MetOffice/lfric_apps#179
Test branch: the action of the upgrade macro can be seen on my test branch here: https://github.com/tommbendall/lfric_core/pull/2/changes
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_core - test_coord_space/run4
Suite Information
Task Information
✅ succeeded tasks - 372
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