Repository navigation
Commit 7736e52
BCGSTAB: do not return the initial guess as the best iterate (#2979)
## Proposed Changes
Since #2933, BCGSTAB returns the iterate with the smallest residual. The
initial guess (zero) was also a candidate. When no step lowered the
residual, the solver returned zero, so the variables got no update.
With few linear iterations this happens often. In RAE2822 SA
(`LINEAR_SOLVER_ITER= 3`) the turbulence variable stops being updated
from iteration 11, and the case converges to a wrong solution.
Now only the computed iterates are candidates.
Only `turbmod_sa_neg_rae2822` changes. Its reference values are updated
from the CI.
## Related Work
- #2933
## PR Checklist
- [x] I am submitting my contribution to the develop branch.
- [x] My contribution generates no new compiler warnings (try with
--warnlevel=3 when using meson).
- [x] My contribution is commented and consistent with SU2 style
(https://su2code.github.io/docs_v7/Style-Guide/).
- [x] 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.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Evert Bunschoten <38651601+EvertBunschoten@users.noreply.github.com>
Co-authored-by: Nijso <bigfootedrockmidget@hotmail.com>
Co-authored-by: rois1995 <rauxa1995@gmail.com>1 parent 50dd0e3 commit 7736e52
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | | - | |
1141 | 1140 | | |
1142 | 1141 | | |
1143 | 1142 | | |
| |||
1198 | 1197 | | |
1199 | 1198 | | |
1200 | 1199 | | |
1201 | | - | |
| 1200 | + | |
1202 | 1201 | | |
1203 | 1202 | | |
1204 | 1203 | | |
| |||
1211 | 1210 | | |
1212 | 1211 | | |
1213 | 1212 | | |
1214 | | - | |
| 1213 | + | |
| 1214 | + | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
1019 | | - | |
| 1019 | + | |
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| |||
0 commit comments