Fix logic bugs in 2D Actuator Disk preprocessing and Periodic Solver#2694
Fix logic bugs in 2D Actuator Disk preprocessing and Periodic Solver#2694shbhmexe wants to merge 15 commits intosu2code:developfrom
Conversation
- CSU2ASCIIMeshReaderFVM.cpp: Fix uniqueness logic and array indexing in 2D Actuator Disk splitting. - CSolver.cpp: Fix matrix corruption in Periodic Least Squares (replace duplicate r23_b with 0.0). Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
- CSU2ASCIIMeshReaderFVM.cpp: Fix uniqueness logic and array indexing in 2D Actuator Disk splitting. - CSolver.cpp: Fix matrix corruption in Periodic Least Squares (replace duplicate r23_b with 0.0). Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
- Restore CSolver.cpp to original state (r23_b changes were incorrect) - Keep CSU2ASCIIMeshReaderFVM.cpp fixes: unique() removal and iEdge->iPoint fix Signed-off-by: shbhmexe <shubhushukla586@gmail.com>
pcarruscag
left a comment
There was a problem hiding this comment.
Do you have before/after results?
No before/after numerical results available as this fixes 2D Actuator Disk code path which has no regression test coverage. The changes are logical corrections: Fix wrong variable iEdge → iPoint in loop |
|
You'll need to add a regression test for this. |
- Added simple 2D mesh (actdisk_2d.su2) with 2-edge actuator disk marker to reproduce perimeter detection issues. - Added dry-run configuration (config.cfg). - Registered '2d_actuator_disk_check' in serial_regression.py.
…://github.com/shbhmexe/SU2 into fix/2d-actuator-disk-and-periodic-solver-bugs
| This will be used to do checks when code is pushed to github | ||
| to make sure nothing is broken. ''' | ||
|
|
||
| args = parse_args('Parallel Regression Tests') |
Check notice
Code scanning / CodeQL
Unused local variable Note
| This will be used to do checks when code is pushed to github | ||
| to make sure nothing is broken. ''' | ||
|
|
||
| args = parse_args('Parallel Regression AD Tests') |
Check notice
Code scanning / CodeQL
Unused local variable Note
i add regression test for this particular fix |
The su2 mesh goes into the repository su2code/Testcases |
Done! I've: Added test registration in serial_regression.py |
- Reverted regression.yml to use -c develop - Removed 2d_actuator_disk_check test until TestCases PR is merged
|
? |
|
You say you did x, but then you didn't. the pr comments and description are just fiction. |
This PR fixes logic bugs in the 2D Actuator Disk surface splitting code in
CSU2ASCIIMeshReaderFVM.cpp:ActDiskPoint_Front[iEdge]toActDiskPoint_Front[iPoint]- was using wrong variable causing incorrect perimeter detectionEdgeBegin[...]toActDiskPoint_Front[...]- was indexing wrong array causing potential segfaultRelated Work
No related PRs or issues.
PR Checklist
pre-commit run --allto format old commits.