Repository navigation
Spectral and Newtonian Nudging - #670
James Bruten (james-bruten-mo) merged 39 commits into
Conversation
Update stable for vn3.1
Merge vn3.2 stable
iboutle
left a comment
There was a problem hiding this comment.
Hi Tom,
Passing this back now, although I'm still reading through the documentation etc, as I think there are a few changes that we probably do want to build into this, in-case they change the way anything is implemented:
- we need a
nudging_stopnamelist entry, to turn off the nudging after a set period of time. It needs to accommodate very large numbers, which is why I wondered if it would be better to specify in hours instead of seconds, and make the start times consistent with this - we need the ability to stop the nudging above
MAX(tropopause_level, nudging_min_tropopause_level)wherenudging_min_tropopause_level=48andtropopause_levelis calculated via locate_tropopause_kernel_mod. I think you'll need to call locate_tropopause_kernel on the nudging mesh - possibly you could do this when calculating the weights, and then alter the weights calculation kernel to set them to 0 based on this condition. Essentially this means that the weights calculation will always need to happen when nudging is on, because the tropopause will change every timestep.
|
iboutle I think this is now ready for review again. I'm afraid there were quite a few changes, but the diff to see them all together is here: https://github.com/tommbendall/lfric_apps/compare/e5a2430..05797a3 What I've done:
|
iboutle
left a comment
There was a problem hiding this comment.
A few minor comments but nothing too serious!
Thanks for the suggestions: I've made these now so this is back to you |
iboutle
left a comment
There was a problem hiding this comment.
Looks good - over you you Ed Hone (@EdHone)
thomasmelvin
left a comment
There was a problem hiding this comment.
All looks fine from a code owner view
Ed Hone (EdHone)
left a comment
There was a problem hiding this comment.
Some minor changes requested for some formatting, but otherwise all looks good
Thanks for the review! Style fixes made in a1815c5 I've then merged up to head-of-main and fixed conflicts |
8de262e
into
MetOffice:main
PR Summary
Sci/Tech Reviewer: iboutle
Code Reviewer: Ed Hone (@EdHone)
This adds the capability to nudge LFRic prognostic fields to external data (e.g. ERA or AIFS). The technical infrastructure for this was added in #474 -- this PR adds the scientific capability.
This adds:
nudging_alg_mod.x90, which is called fromexternal_forcingTest branch: https://github.com/tommbendall/lfric_apps/pull/16/changes
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - test_spectral_nudging/run2
Suite Information
Task Information
✅ succeeded tasks - 1600
Security Considerations
Performance Impact
AI Assistance and Attribution
Met Office Github Copilot Enterprise used in creating documentation.
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review