Skip to content

Add Sod shock tube tutorial to the tutorial regression tests - #3057

Open
PraptiPatra wants to merge 2 commits into
su2code:developfrom
PraptiPatra:feature/sod-tutorial-regression
Open

PraptiPatra wants to merge 2 commits into
su2code:developfrom
PraptiPatra:feature/sod-tutorial-regression

Conversation

@PraptiPatra

Copy link
Copy Markdown

Proposed Changes

Adds the new Sod shock tube tutorial to the tutorial regression tests in TestCases/tutorials.py, as requested in su2code/Tutorials#91.

The test runs the full case (1000 explicit time steps, about 1.4 s with mpirun -n 2) and checks the physical time and the density RMS residual at the last step. I checked the values locally with TestCase.run_test() on 2 ranks; they are identical to a serial run.

Note: the regression workflow checks out the Tutorials repository at develop, so the tutorials.py job will fail until su2code/Tutorials#91 is merged.

Related Work

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (no C++ changes).
  • 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.

Adds the Sod shock tube case (su2code/Tutorials#91) to TestCases/tutorials.py.
The test runs the full 1000 explicit time steps (about 1.4 s on 2 ranks) and
checks the physical time and the density RMS residual at the last step.
Fixes the four CodeFactor E221 warnings (multiple spaces before operator).
No change in behaviour.
@PraptiPatra
PraptiPatra force-pushed the feature/sod-tutorial-regression branch from 6ad3d0c to 05cf422 Compare December 3, 2026 05:44

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant