Skip to content

Fix ASCII compact restarts - #2891

Merged
joshkellyjak merged 2 commits into
developfrom
fix_compact_restarts
Sep 10, 2026
Merged

joshkellyjak merged 2 commits into
developfrom
fix_compact_restarts

Conversation

@joshkellyjak

@joshkellyjak joshkellyjak commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Proposed Changes

CSU2FileWriter takes its header from dataSorter->GetRequiredFieldNames() but reads data columns by positional index, so the sorter it's handed must be the one whose layout those names describe. The RESTART_BINARY branch directly below already does this correctly with volumeDataSorterCompact but for ASCII restarts where the user has specified VOLUME_OUTPUT fields outside the compact set, the columns become shifted and the outputted values are wrong.

Related Work

N/A

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

@joshkellyjak
joshkellyjak merged commit e2aa180 into develop Sep 10, 2026
39 checks passed
@joshkellyjak
joshkellyjak deleted the fix_compact_restarts branch September 10, 2026 03:51
bigfooted added a commit that referenced this pull request Sep 13, 2026
## Proposed Changes
*Give a brief overview of your contribution here in a few sentences.*

continuation of #2891 
SURFACE_CSV still has a compact restart issue. Since surface_csv is not
a restart file, we do not apply compactness to it.

## Related Work
*Resolve any issues (bug fix or feature request), note any related PRs,
or mention interactions with the work of others, if any.*



## PR Checklist
*Put an X by all that apply. You can fill this out after submitting the
PR. If you have any questions, don't hesitate to ask! We want to help.
These are a guide for you to know what the reviewers will be looking for
in your contribution.*

- [x] I am submitting my contribution to the develop branch.
- [ ] My contribution generates no new compiler warnings (try with
--warnlevel=3 when using meson).
- [ ] My contribution is commented and consistent with SU2 style
(https://su2code.github.io/docs_v7/Style-Guide/).
- [ ] I used the pre-commit hook to prevent dirty commits and used
`pre-commit run --all` to format old commits.
- [ ] I have added a test case that demonstrates my contribution, if
necessary.
- [ ] I have updated appropriate documentation (Tutorials, Docs Page,
config_template.cpp), if necessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants