Skip to content

Update MeshBuilder API #305

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

Merged
merged 1 commit into from
Jul 21, 2025
Merged

Update MeshBuilder API #305

merged 1 commit into from
Jul 21, 2025

Conversation

wdeconinck
Copy link
Member

@wdeconinck wdeconinck commented Jul 21, 2025

Updates to the MeshBuilder and TriangularMeshBuilder API

  • Changes to allow to use arbitrary indexing base for global_index (e.g. 0-based or 1-based) to define nodes, elements and connectivities.

  • API that uses mdspan

  • Fixes to allow strided node-coordinates

  • Allow Fortran array slices for (strided) coordinates in TriangularMeshBuilder

@fmahebert this may be affecting you. Previous APIs are still working but are deprecated, with a compiler warning.
Just adding a global_index_base argument should remove the warning.

💣💥☠️ Static Analyzer Report ☠️💥💣
https://sites.ecmwf.int/docs/atlas/static-analyzer/PR-305

- Changes to allow to use arbitrary indexing base (e.g. 0-based or 1-based)
  to define nodes, elements and connectivities.

- API that uses mdspan

- Fixes to allow strided node-coordinates

- Allow Fortran array slices for (strided) coordinates in TriangularMeshBuilder
@wdeconinck wdeconinck merged commit 49d5f36 into develop Jul 21, 2025
209 checks passed
@fmahebert
Copy link
Contributor

Thanks for the ping on this @wdeconinck !

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