Skip to content

FAC zone plus a split fault's structural rows: the solve hangs at np 4 (converges in serial) #925

Open

Description

@lmoresi

At np 4, a solve whose finest level is a split fault with fac_zone keyed beside it, and with the split's structural rows added to the zone's FAC blocks, goes silent and never finishes. The same case converges in serial. The zone alone and the structural rows alone both finish at np 4.

Reproductions

The fixture is the add-on matrix's row 5 TI case. It uses UWTN 2026-022's problem A at h_b/S = 24: a split frictionless fault from (0.30, 0.45) to (0.70, 0.55), with a TI band placed as a ribbon 0.08 below it, unsplit and keyed as fac_zone. The hierarchy is H0 (welded base, split S level, FAC patch). Driver: row5_networks.py -uw_case ti -uw_hier H0 -uw_zone ti -uw_gap 8 (lmoresi/uw3-campaigns, branch addon-matrix-2026-11). Host: kaiju, PETSc 3.25.0, Open MPI 4.1.1.

build structural rows with the zone np result
964dc3c (development 25d6281 + #906, inert here) UW_FAC_STRUCTURAL=1, UW_FAC_COVER=1.01 4 log silent from 12 s, killed at its 30 min limit, no record
bugfix/fac-zone-structural-921 945504b (the union is the default there) default 4 log silent from 18 s, still silent at 47 min of a 1 h limit, no record
964dc3c UW_FAC_STRUCTURAL=0 (zone blocks alone) 4 finishes: 1179 velocity iterations
945504b no zone, structural only (the pair case) 4 finishes: 80 iterations, all 31326 block rows on rank 1
laptop, development + the same knobs union 1 finishes: 94 iterations

No stacks were captured, so it is not yet known whether the run is stuck in a collective or iterating without converging (the velocity, pressure and outer caps are 200, 200 and 300).

What the code does at np > 1

CustomMGHierarchy.build, the parallel FAC branch on the finest level:

  • Its collectives are the zone_anywhere LOR allreduce, the parallel structural split (_fac_patch_split_parallel: a scatter and two allreduces) and the block-count MAX allreduce. All run unconditionally or under conditions that are the same on every rank, so reading the code finds no rank-asymmetric branch here.
  • Zone blocks hold rows owned by other ranks. The rows are lay.l2g[full] over the masked cells' nodes, and the layout's ghost-resolved l2g puts a masked cell's off-rank nodes into the block (the seam halo). The zone-alone run has these too, and finishes.
  • The structural block holds only this rank's owned rows (sub_local + fstart). The union adds them as one more block, minus the rows this rank's own zone blocks cover. Rows that another rank's zone block holds as seam halo are not subtracted. So with the union, a row owned by the fault's rank can sit in its structural block and in another rank's zone block. Basic ASM then adds both corrections there. The zone-alone run does not have this overlap across ranks between a structural block and a zone block.

Where the time goes still needs per-rank stacks. The next run dumps every rank's Python stack every 5 minutes. #921 (whose branch makes the union the default for a zone keyed on a split level) is held until this is found.

Underworld development team with AI support from Claude Code

Activity

  1. added
    bug
    on Nov 2, 2026
  2. added 11 commits that reference this issue on Nov 3, 2026
  3. added
    fixed-in-PR
    on Nov 3, 2026
  4. lmoresi commented on Nov 3, 2026

    @lmoresi
    MemberAuthor

    Fixed in PR #934, stacked on #933.

  5. added 2 commits that reference this issue on Nov 3, 2026
  6. added
    fixed-in-development
    and removed
    fixed-in-PR
    on Nov 4, 2026
  7. added 2 commits that reference this issue on Nov 8, 2026
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