Skip to content

Conversation

@msimberg
Copy link
Contributor

@msimberg msimberg commented Sep 1, 2025

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 experiment fixture. A few fields are not available in serialized data and tests for those are skipped.

msimberg added 27 commits August 7, 2025 15:46
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.
@msimberg msimberg changed the title Better torus support 4 Initialize geometry fields for torus grids Sep 2, 2025
{
"coriolis_parameter": gtx.as_field(
(dims.EdgeDim,),
self._xp.zeros(
Copy link
Contributor Author

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.

@msimberg
Copy link
Contributor Author

I'm going to start splitting this into separate PRs, with the help of @jcanton:

  • A PR for the basic geometry class changes
  • One for interpolation fields
  • One for metrics
  • One or more for any small unrelated changes I've done here

I'll keep this PR open for integration testing of different branches, but the other PRs should be what gets merged.

@msimberg msimberg force-pushed the better-torus-support-4 branch from 7e8ee34 to e327091 Compare November 17, 2025 15:29
@msimberg msimberg force-pushed the better-torus-support-4 branch from e327091 to f49e3c7 Compare November 17, 2025 15:44
msimberg added a commit that referenced this pull request Nov 18, 2025
…#948)

Just extracts a minor inconsistency from #853. Also fixes dtype for
mask_hdiff.
@github-actions
Copy link

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark-bencher

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

To run test levels ignored by the default test suite (mostly simple datatest for static fields computations) you can use:

  • cscs-ci run extra

For more detailed information please look at CI in the EXCLAIM universe.

@msimberg
Copy link
Contributor Author

#948 and #947 were merged and fix a couple of small issues that were drive-by changes on this PR.

I opened #953 to extract the geometry-related changes into a separate PR.

@msimberg
Copy link
Contributor Author

This is replaced by #965.

@msimberg msimberg closed this Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant