Overhauled node sorting in periodic geometry to be less buggy #500
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.
As described in Issue #431, using
SU2_MSH
for periodic mesh construction can be buggy due to its sorting of nodes. Under certain conditions, nodes can be duplicated and/or missing from the output *.su2 file.This pull request implements a more robust sorting process, where the sorting occurs in the following steps:
Here's a few comments about the pull request:
SU2_CFD
andSU2_MSH
have memory issues.Verification
Since none of the existing regression tests run
SU2_MSH
, I created a separate case to verify both the bug and the fix. It's a simple 3x3 cube that's periodic in the z-direction. I've attached the files below. Here's the steps:SU2_MSH MSH.cfg
SU2_CFD per_CFD_dev.cfg
Using the existing develop branch, the verification case runs into a segfault when writing the output. This pull request allows the verification case to complete successfully.
You can also check the original test case from Issue #431 to verify the bug fix. If any of you know of additional verification tests I could run, then please let me know.
Test case: cube.tar.gz
This fixes #431