Skip to content

Conversation

@svenulbrich
Copy link

icon_mesh.py: points in incomplete triangles of coarser/parent grid are provided the closest three grid points instead of removing these points.

Description

LAM grid points within a coarser grid were removed, if they were not within a triangle of 3 grid points of the coarser(/parent) grid. This results in an incomplete grid (in particular when applying higher refinement levels)
Assigning these grid points the three closest grid points of the coarser (/parent) grid resolves this issue for these particular cases. For global grids this assignment does not happen and hence, these cases are not affected.

What problem does this change solve?

This is a bugfix, in terms of LAM grids based on ICON grids. However, as ICON-LAM gridded forecasts were not possible with ANEMOI before, this is somehow also a new feature.

What issue or task does this change relate to?

We did not generate an issue number before.

Additional notes

A unit test has not yet been developed as embedded grid developments (ANEMOI forecasts based on local ICON grids) is currently still under development.

As a contributor to the Anemoi framework, please ensure that your changes include unit tests, updates to any affected dependencies and documentation, and have been tested in a parallel setting (i.e., with multiple GPUs). As a reviewer, you are also responsible for verifying these aspects and requesting changes if they are not adequately addressed. For guidelines about those please refer to https://anemoi.readthedocs.io/en/latest/

By opening this pull request, I affirm that all authors agree to the Contributor License Agreement.

icon_mesh.py: points in incomplete triangles of coarser/parent grid are provided the closest three grid points instead of removing these points.
svenulbrich and others added 4 commits January 27, 2026 15:00
@HCookie HCookie changed the title Update icon_mesh.py fix: Enable LAM with icon_mesh.py Jan 27, 2026
@HCookie HCookie requested review from JPXKQX and MeraX and removed request for JPXKQX January 27, 2026 15:18
@HCookie HCookie added the ATS Approval Needed Approval needed by ATS label Jan 27, 2026
@HCookie HCookie moved this from To be triaged to Now In Progress in Anemoi-dev Jan 27, 2026
@HCookie HCookie moved this from Now In Progress to Reviewers needed in Anemoi-dev Jan 27, 2026
@HCookie HCookie requested a review from JPXKQX January 27, 2026 15:18
@anaprietonem
Copy link
Contributor

@MeraX would you have some time to look at this? Would be great to check those changes are also fine with the developments you're doing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ATS Approval Needed Approval needed by ATS graphs

Projects

Status: Reviewers needed

Development

Successfully merging this pull request may close these issues.

4 participants