As your code is not a reproducible example, it is hard to give guidance. However, I think you should consider Ordering of cells via mesh.topology.original_cell_index - #2 by dokken using the original cell index map to transfer the entity tags from its input index.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Issue reading the mesh tags imported from gmsh | 7 | 179 | July 9, 2024 | |
Fenicsx different tags in boundary | 11 | 793 | September 11, 2023 | |
Create corresponding cell tags from existing facet tags | 0 | 27 | February 20, 2025 | |
Write and read back mesh in parallel with same meshtags | 12 | 370 | March 25, 2024 | |
Cell Tags in the Wrong Order | 3 | 724 | July 18, 2022 |