Repository navigation
Description
A warm rotated free-slip solve on the iteration-0 fast path sometimes fails at iteration 0 with no failure injected. The inputs are the same as those of the previous solve, which converged.
What we see
The fixture is test_1115's annulus (refinement 2, custom FMG, a linear viscosity, rotated free-slip on both walls) with development's coarse solve (SVD). The sequence:
- a cold solve;
- warm solves, each started from
v = 1.05 * v_solvedwithpunchanged, so every warm solve has the same right-hand side.
One serial run:
cold #1: conv=True ksp_reason=2 ws_reused=False rel=['1.0e+00', '1.4e-09']
warm 1.05 #0: conv=True ksp_reason=2 ws_reused=True rel=['3.0e-02', '5.8e-11']
outer reason -11 its 0 | vel ksp -9 its 0 pc mg | pres ksp -4 its 30 pc gasm | coarse ksp 4 pc svd | |bhat|=1.207e+00
warm 1.05 #1: conv=False ksp_reason=-11 ws_reused=True rel=['3.0e-02']
warm 1.05 #2: conv=True ksp_reason=2 ws_reused=False rel=['3.0e-02', '5.8e-11']
- Warm #0 and updated checkpoint_xdmf method save discontinuous fields properly #1 have the same
|bhat|and both run on the cached workspace's fast path, yet updated checkpoint_xdmf method save discontinuous fields properly #1 fails. - The pressure sub-KSP (GASM) diverges (DTOL, -4) after 30 iterations, and then the velocity sub-solve sees a NaN at iteration 0 (-9).
- After a rebuild (Swarm rework dev merged #2), the same solve converges.
How often:
- 16 of 26 serial runs had at least one failing warm solve.
- The failure is not tied to
PYTHONHASHSEED: seed 4 failed once and passed twice. - Repeated cold solves: 0 of 34 failed.
- Warm re-solves after a real change (viscosity x2, forcing +1%): 0 of 36 failed.
What it means
It looks like state carried in the cached KSP between solves, in the pressure sub-KSP or the Schur complement, that the fast path does not reset. We have not isolated it.
Before the #907 branch, one such failure latched the workspace: every later solve on the solver failed at iteration 0, including ones that re-assembled the operator. We showed this natively by emulating the old caching. On bugfix/rotated-solve-raises-on-failure (eac2c90 onward), a workspace whose KSP failed hard is not cached, so the next solve recovers.
Where
- Observed on
bugfix/rotated-solve-raises-on-failureat eac2c90. Its changes do not touch the KSP or the fast path.developmentwas not probed directly. - The probe is in the Rotated free-slip solve whose preconditioner fails returns v = 0 with only a warning #907 round-3 review record. It installs the solver and calls
stokes.solve(zero_init_guess=False)after settingv.array[...] = 1.05 * v_solved.
Found in the round-3 adversarial review of the #907 branch.
Activity
#907 review round 3: test the warm drop, document what it costs
Convergence reference policy: the rotated sub-solves' round-off floor (…
Rotated solve: the Schur sub-solve stops at round-off of its own term…
Merge development into the #910 branch (#546 m3 is now on development…
Review round 2 (#910): release the velocity KSP; the measured margins…
Review record check (#910): the cold ratios run from 5.7e9, not 1e14;…
Merge development (613ed1e) into the #910 branch
Merge pull request #1061 from underworldcode/bugfix/rotated-workspace…
lmoresi commentedon Nov 12, 2026
Fixed by #1061, merged to
developmentat ca2a9ee. Stays open until the release tomain.Underworld development team with AI support from Claude Code
Generated by Claude Code
Rotated solve: fieldsplit sub-solves stop at round-off of the problem…