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

Associate MeshTags with Topology (and not Mesh) #2607

Merged
merged 15 commits into from
Mar 31, 2023
Merged

Conversation

garth-wells
Copy link
Member

MeshTags data is defined on mesh entities (topology), and not a full mesh, i.e. geometry plays no role. The PR makes MeshTags depend on Topology and not Mesh. This avoids MeshTags having to be templated over the geometry scalar type.

To make this work, a Mesh now holds a shared pointer to its topology, allowing the topology to be shared with a MeshTags. This has the additional benefit of allowing meshes with different geometry scalar types to share a common topology.

Fixes #2601.

@garth-wells garth-wells marked this pull request as ready for review March 30, 2023 16:24
@garth-wells garth-wells added enhancement New feature or request housekeeping Tidying and style improvements labels Mar 31, 2023
@garth-wells garth-wells changed the title Associate MeshTags with Topology (and not Mesh). Associate MeshTags with Topology (and not Mesh) Mar 31, 2023
@garth-wells garth-wells added this pull request to the merge queue Mar 31, 2023
@garth-wells garth-wells removed this pull request from the merge queue due to a manual request Mar 31, 2023
@garth-wells garth-wells added this pull request to the merge queue Mar 31, 2023
Merged via the queue into main with commit 61fb789 Mar 31, 2023
@garth-wells garth-wells deleted the garth/meshtags-update branch March 31, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request housekeeping Tidying and style improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Associate Topology with MeshTags, not Mesh with MeshTags
1 participant