-
Notifications
You must be signed in to change notification settings - Fork 14
Features to support surface physics #135
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
Conversation
…ature/index_tests
romanc
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.
The linter seems unhappy 😢 Since I don't understand much of nameslists/constants and how they are used, I focused on nitpicking ;)
Would it make sense to have ndsl/stencils/solvers.py such that users can
from ndls.stencils.solvers import masked_tridiagonal_solverwrite imports like the above one? If (in the future) we get to many, many solvers in the future, we could even do subfolders like
from ndsl.stencils.solvers.tridiagonal import thomas_algorithmI'm just thinking out loud here. It might be too early to do that kind of name changes ...
I also think it would be nice to have a simple test for the tridiagonal solvers.
ndsl/stencils/tridiag.py
Outdated
| b: diagonal matrix coefficients | ||
| c: upper-diagonal matrix coefficients | ||
| d: Result vector | ||
| mask: |
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.
description for mask is missing ...
|
what? |
@oelbert This error also popped up previously, update your base branch and you should be good, i think. |
NDSL has a hook to run tests from pace. These pace tests had issues with |
FlorianDeconinck
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.
LGTM
Description
This PR adds some features used in the SHiELD physics for surface routines, mostly namelist parameters, along with a new basic stencil for averaging fields and a tridiagonal solver.
How Has This Been Tested?
Surface physics schemes have been tested and validated with this branch
Checklist: