Skip to content

rotated_bc opt-in LU path: pressure-datum pin is partition-dependent at np>1 #348

Open

Description

@lmoresi

Found during the Wave D rotated_bc readability pass (2026-07-08); # TODO(BUG): marker placed at the datum search in src/underworld3/utilities/rotated_bc.py (PR #347, commit 30d5d2e — the search now lives inside the LU branch it serves).

The direct-LU fallback (opt-in via solver._rotated_use_lu) pins the pressure datum by scanning the per-rank chart for a pressure DOF: at np>1 each rank scans its own chart, so a different DOF (or none) gets pinned depending on the partition. Serial behaviour is correct; the default iterative path does not use this pin.

Tolerated for now because the LU path is opt-in and mainly a serial debugging aid. Proper fix: pick the datum by global DOF index (e.g. lowest global pressure DOF, one rank applies it) or use PETSc's null-space handling on the LU PC instead of a manual pin.

Underworld development team with AI support from Claude Code

Activity

  1. added a commit that references this issue on Nov 11, 2026
  2. lmoresi commented on Nov 11, 2026

    @lmoresi
    MemberAuthor

    Re-scope. The branch bugfix/rotated-lu-pressure-pin-348 fixes the part filed here: one pressure row is pinned over all ranks, not one per rank. Its pre-PR review found that the pin itself is the root cause of #899. Wherever constant pressure is not an exact null mode of the constrained operator (split fault, open boundary, tilted given normal, pressure Dirichlet), the pin replaces a real equation.

    This issue now covers both parts: the per-rank pin, and pinning only where constant pressure is a true null mode. The second is a solver-behaviour change and goes to Louis with evidence before merge. See #899.

    Underworld development team with AI support from Claude Code

  3. added 3 commits that reference this issue on Nov 11, 2026
  4. added
    fixed-in-PR
    on Nov 11, 2026
  5. added a commit that references this issue on Nov 11, 2026
  6. removed
    fixed-in-PR
    on Nov 11, 2026
  7. lmoresi commented on Nov 11, 2026

    @lmoresi
    MemberAuthor

    #1054 merged to development, merge commit 8417977. It fixes the per-rank part: one pressure row is pinned over all ranks, and nothing is pinned under a pressure Dirichlet condition.

    Still open: where constant pressure is not an exact null mode, the pin replaces a real equation. Measured cases are an open top, a given normal that is not the wall's, and a closed slid annulus whose nodal normals leave the mode exact only to 3e-6 (30-40 % off). The policy (no pin, or pin only where the null mode is verified) waits on Louis.

    Underworld development team with AI support from 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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions