Skip to content

Warm rotated solve on the fast path fails at iteration 0 with no cause (pressure sub-KSP DTOL, then NaN) #910

Open

Description

@lmoresi

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:

  1. a cold solve;
  2. warm solves, each started from v = 1.05 * v_solved with p unchanged, 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']

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

Found in the round-3 adversarial review of the #907 branch.

Activity

  1. added
    bug
    on Oct 31, 2026
  2. added a commit that references this issue on Oct 31, 2026
  3. added
    fixed-in-PR
    on Nov 11, 2026
  4. added 2 commits that reference this issue on Nov 11, 2026
  5. removed
    fixed-in-PR
    on Nov 12, 2026
  6. added a commit that references this issue on Nov 12, 2026
  7. added
    fixed-in-development
    on Nov 12, 2026
  8. lmoresi commented on Nov 12, 2026

    @lmoresi
    MemberAuthor

    Fixed by #1061, merged to development at ca2a9ee. Stays open until the release to main.

    Underworld development team with AI support from Claude Code


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixed-in-development

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions