Skip to content

Add torus support for metrics fields#957

Closed
msimberg wants to merge 3 commits intoC2SM:mainfrom
msimberg:better-torus-support-metrics
Closed

Add torus support for metrics fields#957
msimberg wants to merge 3 commits intoC2SM:mainfrom
msimberg:better-torus-support-metrics

Conversation

@msimberg
Copy link
Copy Markdown
Contributor

On top of #954. Best viewed as diff: msimberg/icon4py@better-torus-support-interpolation...msimberg:icon4py:better-torus-support-metrics.

This is (so far) only updating tests, though some calculations may need updating as well.

I've marked two tests xfail in test_metrics_factory.py. I have not investigated why they're wrong.

A couple of tests in test_metric_fields.py (test_compute_theta_exner_ref_mc and test_compute_pressure_gradient_downward_extrapolation_mask_distance) fail for all grids (not just torus). Perhaps this is fixed on main already, but I'm not marking those xfail.

@github-actions
Copy link
Copy Markdown

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 msimberg changed the title Add torus support for interpolation fields Add torus support for metrics fields Nov 21, 2025
@jcanton jcanton closed this Dec 9, 2025
@jcanton jcanton mentioned this pull request Dec 9, 2025
jcanton added a commit that referenced this pull request Jan 5, 2026
Based upon #953 #954 and #957 by @msimberg
Adds torus support to geometry, RBF and interpolation.
Also adds torus grids to all datatests

---------

Co-authored-by: Mikael Simberg <[email protected]>
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.

2 participants