Repository navigation
Fix surface elements lost when several markers are plotted - #3027
Merged
Merged
Conversation
The duplicate-visit flags of the surface connectivity sort were kept across markers, but boundary element indices restart at zero on each marker, so an element could be taken as already visited and dropped from the surface output. Reset the flags for each marker, and add a unit test with a box mesh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 tasks done
bigfooted
reviewed
Nov 30, 2026
bigfooted
approved these changes
Nov 30, 2026
bigfooted
left a comment
Contributor
There was a problem hiding this comment.
LGTM, check my comment and see if it makes sense.
Contributor
Author
|
Thanks, Nijso. I checked the simplification and replied in the inline thread. |
# Conflicts: # UnitTests/meson.build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
The surface output can miss elements when
MARKER_PLOTTINGlists more than one marker.The surface sorter remembers the last element it visited. The element numbers restart at zero on each marker, but this memory was not reset between markers. So an element of the next marker could be taken as already visited and dropped.
Example: a 2x2x2 box mesh with all 6 faces as plotting markers writes only 1 face instead of 6.
All surface output formats are affected.
Fix
CSurfaceFVMDataSorter::SortSurfaceConnectivity.CPhysicalGeometryalready resets these flags per marker in the same kind of loop.Tests
UnitTests/SU2_CFD/output/CSurfaceFVMDataSorter_tests.cpp. It counts the surface elements of a box mesh for several marker lists.Related
PR Checklist
pre-commit run --allto format old commits.🤖 Generated with Claude Code