Fix: Preserve periodic BC identifications in MergeMeshes #231
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Identify()+Glue()are lost during volume meshingProblem
The
DeleteData()call on identification points was introduced in commit 27b8b5e ("Fix handling identified points in Compress and MeshVolume").However, this causes a regression where periodic boundary conditions set via
Identify()+Glue()are lost during volume meshing. The issue is that the original mesh contains the identification information, but when merging subdomain meshes, this information is deleted before subdomain identifications (which typically don't exist) are copied.Solution
Remove the
DeleteData()call, preserving the original mesh's identification points. The subsequent loop still copies any subdomain identifications if they exist.Test case
Related
🤖 Generated with Claude Code