Skip to content

fix(graphs,aicon): icon mesh vertex mask#975

Open
fprill wants to merge 3 commits intoecmwf:mainfrom
fprill:fix/icon_mesh_vertex_mask
Open

fix(graphs,aicon): icon mesh vertex mask#975
fprill wants to merge 3 commits intoecmwf:mainfrom
fprill:fix/icon_mesh_vertex_mask

Conversation

@fprill
Copy link
Copy Markdown
Contributor

@fprill fprill commented Mar 16, 2026

Description

Bug-fix: Fixes cell-to-vertex indexing during coarsening of ICON meshes.

What problem does this change solve?

In the AICON encoder, edges are constructed between cell circumcenters (representing data points) and the three vertices of the enclosing hidden mesh triangle. However, a critical bug was introduced during recent refactorings of icon_mesh.py: Invalid edges were generated and edge shard partitions became empty due to incorrect indexing.

What issue or task does this change relate to?

none (bug-fix)

@github-project-automation github-project-automation bot moved this to To be triaged in Anemoi-dev Mar 16, 2026
@mchantry mchantry added the ATS Approval Not Needed No approval needed by ATS label Mar 16, 2026
@mchantry mchantry requested a review from JPXKQX March 16, 2026 13:25
@mchantry mchantry changed the title Fix/icon mesh vertex mask fix/icon mesh vertex mask Mar 16, 2026
@mchantry mchantry changed the title fix/icon mesh vertex mask fix: icon mesh vertex mask Mar 16, 2026
@JPXKQX JPXKQX changed the title fix: icon mesh vertex mask fix(graphs,aicon): icon mesh vertex mask Mar 16, 2026
@fprill fprill force-pushed the fix/icon_mesh_vertex_mask branch from b588c8e to dcd1c41 Compare March 23, 2026 07:35
@fprill fprill marked this pull request as ready for review March 25, 2026 11:20
Copy link
Copy Markdown
Member

@JPXKQX JPXKQX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me! Thanks Florian!

@github-project-automation github-project-automation bot moved this from To be triaged to For merging in Anemoi-dev Mar 30, 2026
@mchantry
Copy link
Copy Markdown
Member

@fprill does the bug point to a missing test?

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

Labels

Projects

Status: For merging

Development

Successfully merging this pull request may close these issues.

4 participants