-
Notifications
You must be signed in to change notification settings - Fork 58
Added Stability with Advective Tracers #171
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?
Added Stability with Advective Tracers #171
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.
A couple of minor suggestions to comments strings otherwise it is all fine
| compulsory=true | ||
| description=Adjusts the equation form of conservative tracer groups to | ||
| =advective form if Watkins algorithm is unable to fix large | ||
| =Lipschitz numbers for consistent transport |
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.
Can you explicitly state here that this breaks conservation
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.
Thanks, I have made this change
| 'so check these values. Stopping model now to fail gracefully', & | ||
| LOG_LEVEL_ERROR & | ||
| ) | ||
| if (adjust_tracer_equation) then |
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.
again, can you make it clear in the log statement that this will make the transport non-conservative
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.
Thanks, I have made this change
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.
Looks good to me
cameronbateman-mo
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 looks good, moving to approved.
|
Apologies for all the commits having an issue with commit signature 😊 |
|
It looks like wee need to make a configuration update in the JEDI testing to add: |
PR Summary
Sci/Tech Reviewer: @thomasmelvin
Code Reviewer: @cameronbateman-mo
This ticket fixes a potential stability issue, where departure points can't be found for consistent tracers with FFSL transport schemes. This issue is very rare, and has only been observed once when running Climate Case Studies with very large time steps. The fix is to revert to advective form (and thus break conservation) for the tracers on this time step only.
I've put this on a switch as some users might desire conservation above all else. None of the tests in the test suites see this stability issue, so there are no kgo changes whether the switch is on or off. (I've tested it worked on the Climate Case Study that failed).
Code Quality Checklist
Testing
I have run the gungho_model and lfric_atm suites with the switch set to true. As expected nothing changed and all the kgos passed. I have left the switch set to false.
trac.log
Test Suite Results - lfric_apps - advective_tracer_stability_test/run1
Suite Information
Task Information
✅ succeeded tasks - 1106
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