Repository navigation
Conversation
With implicit periodicity, the PERIODIC_RESIDUAL comms delete the rows of the passive points (first marker of each pair) and add only their diagonal block to the master. The off-diagonal blocks of the passive rows, and the columns of other rows that refer to passive points, are lost. On a wedge one cell thick every point is periodic, so most of the Jacobian coupling disappears and the Newton step is useless above CFL ~25. CSolver::CouplePeriodicJacobian moves those blocks to the master rows and columns, rotated, before the comms. Only masters on the same rank and blocks that exist in the sparsity pattern are coupled. Blocks go through GetBlockView/SetBlock, so the quantized Q_LU_SGS storage works too. The edge between a point and its own periodic image is left out of the local time step. It only rotates the state, but it added the sound speed and the viscous term and made the time step ~60x too small on the axis of a wedge. New case TestCases/incomp_rans/morse_swirl_jet (Morse 1980 swirling jet, 5 deg one-cell wedge, SA) and regression test inc_turb_morse_swirl_jet (restart, 10 iterations); mesh and solution are in the TestCases branch fix_periodic_jacobian, which regression.yml points to until it is merged. Regression values of the periodic cases in parallel_regression.py and serial_regression.py are updated; hybrid and AD values are not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bigfooted
force-pushed
the
fix_periodic_jacobian
branch
from
November 15, 2026 10:27
5d379c4 to
d88647f
Compare
Contributor
Author
|
Convergence of the Morse swirling jet (5° one-cell wedge, SA, 4 ranks, from uniform flow, identical config), develop vs this PR. Both builds include #3014 so SA has its free-shear form. This PR reaches rms[P] = -10 in 406 iterations; develop is at -6.8 after the same number of iterations and does not converge. |
- Accumulating SetBlock is a no-op on quantized (Q_LU_SGS) off-diagonal blocks, so the moved blocks were dropped. Quantized blocks are now decoded, added and re-encoded; full-precision blocks keep the in-place addition, so results are unchanged bit for bit. - A passive point is coupled only if every moved block exists in the sparsity pattern of its master. On thicker periodic meshes only the along-face blocks fit; moving those alone slowed the discrete adjoint (transonic_stator AD from -7.31 to -6.76 at iteration 79). Now these meshes behave as on develop, and one-cell wedges and slices keep the full coupling. - Loops run over a list of the coupled passive points instead of all points. - CompletePeriodicComms comments named the wrong marker as master. - Regression values: periodic tests without coupled points are back to their develop values; Morse (after #3014) and the two pipeSlice tests use the values computed by CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 21, 2026
No periodic point is coupled in this case. The values change at the 1e-5 level on CI only; local builds of develop and of this branch give bit-identical results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.

Proposed Changes
With implicit periodicity, the passive rows (first marker of each pair) are deleted and only their diagonal block is added to the master, so all off-diagonal couplings of periodic points are lost. On a wedge one cell thick every point is periodic and the Newton step becomes useless above CFL ~25.
CSolver::CouplePeriodicJacobianmoves the off-diagonal blocks of passive rows and columns to their masters (rotated) before the periodic comms.SetBlockis a no-op there).CompletePeriodicCommscorrected: the second marker of each pair is the master.TestCases/incomp_rans/morse_swirl_jet(Morse 1980 swirling jet, 5 deg one-cell wedge, SA) and regression testinc_turb_morse_swirl_jet, which restarts from a converged solution for 10 iterations.Regression values
inc_turb_morse_swirl_jet(new),sp_pipeSlice_3d_dp_hf_tpandsp_pipeSlice_3d_dp_ihf_tp(one-cell periodic slices, coupled).transonic_stator(serial and parallel discrete adjoint) changed at the 1e-5 level on CI only. No point is coupled in this case, and local builds of develop and of this branch give bit-identical results for it.Related Work
MARKER_PERIODICand the implicit treatment: Document MARKER_PERIODIC and its implicit treatment su2code.github.io#234.PR Checklist
pre-commit run --allto format old commits.🤖 Generated with Claude Code