-
Notifications
You must be signed in to change notification settings - Fork 7
Initialize geometry fields for torus grids #853
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
Add a few torus tests, as well as tests that are expected to fail.
Avoid conflict with gt4py GridType.
Make accessing geometry_type easier from GlobalGridParams, when grid_params is None (user does not have to check if the nested grid_params is None to access grid_params.geometry_type).
Will be refactored later.
It provides little value over the regular constructor. The regular constructor now takes keywords, so passing just the mean_cell_area by keyword is simpler and clearer.
| { | ||
| "coriolis_parameter": gtx.as_field( | ||
| (dims.EdgeDim,), | ||
| self._xp.zeros( |
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.
This should be a constant, set from configuration.
|
I'm going to start splitting this into separate PRs, with the help of @jcanton:
I'll keep this PR open for integration testing of different branches, but the other PRs should be what gets merged. |
7e8ee34 to
e327091
Compare
e327091 to
f49e3c7
Compare
|
Mandatory Tests Please make sure you run these tests via comment before you merge!
Optional Tests To run benchmarks you can use:
To run tests and benchmarks with the DaCe backend you can use:
To run test levels ignored by the default test suite (mostly simple datatest for static fields computations) you can use:
For more detailed information please look at CI in the EXCLAIM universe. |
|
This is replaced by #965. |
Part 4 of N for better torus support. This is on top of #848.
Nothing to see here yet, only opening for more thorough testing in CI.
This is the first PR that actually tries to read torus grid files and set up geometries correctly. Tests with torus grids (specifically, the Weisman Klemp experiment) added for anything that uses the generic
experimentfixture. A few fields are not available in serialized data and tests for those are skipped.