Skip to content
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

[BUG]: #3547 does not handle missing tags for intermediate dimensions #3594

Open
francesco-ballarin opened this issue Jan 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@francesco-ballarin
Copy link
Member

Summarize the issue

This line

perm_sort = np.argsort(cell_dimensions)

and its usage as

For instance, in a 3D mesh with cell and edge data it would happen that perm_sort is an array with two entries, with perm_sort[-1] being associated to cell data and perm_sort[-2] (rather than perm_sort[-3]) associated to ridge data.
In other words, the current code assumes that in a D-dimensional mesh, if tags of dimension d are present, then tags of dimension d + 1, ..., D are also present.

cc @finsberg

How to reproduce the bug

Originally reported in https://fenicsproject.discourse.group/t/kernel-crashes-when-loading-1d-mesh-with-xdmffile/16710/5 , even though the example is far from minimal.

Minimal Example (Python)

No response

Output (Python)

No response

Version

main branch

DOLFINx git commit

No response

Installation

No response

Additional information

No response

@francesco-ballarin francesco-ballarin added the bug Something isn't working label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant