Skip to content

Fault multigrid: the rulings, what ships, and what is still on a branch, as a capability guide - #862

Merged
lmoresi merged 20 commits into
developmentfrom
docs/fault-multigrid-guide
Nov 8, 2026
Merged

lmoresi merged 20 commits into
developmentfrom
docs/fault-multigrid-guide

Conversation

@lmoresi

@lmoresi lmoresi commented Oct 28, 2026

Copy link
Copy Markdown
Member

What changed: a new capability guide docs/developer/guides/fault-multigrid.md (kind: guide, families Stokes and Stokes_Constrained), a row in the developer index's capability-guide table and the toctree, and **Status:** lines on the two design documents it draws on (fault-patch-multigrid-2026-08.md, fault-parallel-placement-2026-09.md). Documentation only; no code.

Why: the fault-multigrid rulings (the base is never cut or rebalanced; one hierarchy carries the fault as the model has it; the placed ribbon serves both realisations) kept being re-derived in new sessions, and the only place they were written down was the wiki. The guide states them once, says what ships on development (the fault-patch design: the Galerkin ladder plus the strong patch keyed on the fault physics, the iteration counts to expect, the configuration rules learned from failures, the width ruling), where parallel imbalance comes from, and names the split-level hierarchy measured on feature/fault-split-multigrid as pending rather than available. Every API name was checked against development; the docs build renders the page with no new warnings. The provenance is the journal topic page it links.

Checklist (UW3 Style Charter — docs/developer/UW3_STYLE_CHARTER.md)

  • I have read the Style Charter and followed it over the surrounding code (S2)
  • No drive-by refactors, renames, or "while I was here" cleanups (S9)
  • Bug fixes ship the regression test, written first, with level_* and tier_* markers (S8): not a bug fix
  • No hedging names (maybe_ / try_ / do_) and no commented-out code (S3, S4)
  • Every exception swallow states its sanctioned failure mode in a comment (S4): no code
  • New data access uses .array / mesh.X.coords — no with ....access(...), no mesh.data (S7): no code
  • Parallel safety considered — np2/np4 checked where swarm/mesh/solver dispatch is touched (S11): no code
  • No pixi.toml / pixi.lock or other dependency changes riding in an unrelated PR
  • AI-assisted work carries the attribution line below

Underworld development team with AI support from Claude Code


Generated by Claude Code

…ch, as a capability guide

The three rulings (the base is never cut or rebalanced; one hierarchy carries
the fault as the model has it; the placed ribbon serves both realisations),
the fault-patch design as it ships on development with the iteration counts
to expect and the configuration rules learned from failures, where parallel
imbalance comes from, and the split-level hierarchy measured on
feature/fault-split-multigrid but not merged. The two design documents it
draws on gain status lines; the guide joins the capability-guide table and
the toctree.

Underworld development team with AI support from Claude Code
Copilot AI balanced review requested due to automatic review settings October 28, 2026 05:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

…dder with a hand-built chain

Underworld development team with AI support from Claude Code
…t by vertices

Underworld development team with AI support from Claude Code
Underworld development team with AI support from Claude Code
… base is never modified

Underworld development team with AI support from Claude Code
The index table keeps both guide rows (fault multigrid, faults in convection).

Underworld development team with AI support from Claude Code
…patch on the split finest level (ruling of 2026-11-01)

The fault-multigrid guide drops the chain as what production runs and
states the ruled tail with its counts from the tail sweep on #912's
build; its configuration rule on the blocks now says FAC blocks are LU
and records that the rotated path ran them as ILU(0) from 2026-09-03
until #912 (#892). The split-level section says the library merged
(#889, #890) and keeps the chain as the measured alternative.
Mesh.multigrid_levels (#915) replaces the private accessor.

The faults-in-convection guide's hierarchy section, code and table are
rewritten to the welded tail, with the chain labelled as the alternative
and the ILU-era table retired to the journal. The guide is added to the
developer toctree it was missing from.

Underworld development team with AI support from Claude Code

lmoresi commented Oct 31, 2026

Copy link
Copy Markdown
Member Author

Updated 2026-11-01 after Louis's ruling on #892 (issuecomment-6550186134) and the merges of #889, #890, #912 and #915.

Sphinx builds clean on the branch (exit 0, no warnings on the changed pages). Journal: the decision and finding entries of 2026-11-01 on the fault-multigrid topic.


Generated by Claude Code

…est patch sits on one rank

Both guides cite kaiju's production annulus at np 16 beside the UWTN
2026-022 fixtures (5.9 against 7.7 velocity iterations per Newton
increment, the same answers, both arms the same patch) and say the
drivers' default moves to 0 with the campaign builds. The parallel
section of the fault-multigrid guide records that the whole patch, 465
rows and 105 split pairs, is on one rank, so its LU solve is serial
there (#895).

Underworld development team with AI support from Claude Code
The two tails do the same velocity work on the production annulus
(8.65 against 8.74 F-cycles per solve) in the same time within the
run-to-run spread; the welded arm carries a 3584-row patch on one rank
and the chain none, so the earlier reading of a smaller patch shared by
both arms is withdrawn. The parallel section gives the patch's measured
cost (21 to 28 s a step on one rank, 5 to 6 per cent of the solve) and
says the structural patch is one block per rank with no row cap, the
2000-row cap being for zone blocks only.

Underworld development team with AI support from Claude Code

lmoresi commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

Correction pushed (see the latest commit): kaiju's budget of the np 16 annulus pair (#892, issuecomment-6552218825) supersedes the comment I cited yesterday. The welded arm carried a 3584-row patch on one rank and the chain none, the velocity work is equal (8.65 against 8.74 F-cycles per solve) and the times are a wash; the patch's serial LU costs 5 to 6 % of the solve. Both guides now say that, and the parallel section carries the measured cost and the block rule (one structural block per rank, no row cap; the 2000-row cap is for zone blocks). Sphinx still builds clean.


Generated by Claude Code

…t gain

Both guides give the ratio where they said the reason was open: the
production annulus runs at a band ratio of 3.9, below the smallest ratio
in the sweep table, and the patch's gain appears from about 8 upward.

Underworld development team with AI support from Claude Code
…he gather placement

The parallel section states the two imbalance terms by route. An
adapt-and-cut child inherits the base's partition; the placement route
runs partition_addon first, which balances the add-on and gives the
band's region to one rank, so the band, its split pairs and the FAC
patch are on one rank at any rank count. The serial patch solve measured
at np 16 is therefore the placement's cost, not the welded tail's;
seams=conform would divide it and is unmeasured. The sentence naming
star-weighted partitioning as the planned fix goes, since partition_addon
is that fix.

Underworld development team with AI support from Claude Code
… base's finest grid; the base and its levels are read, never written

Underworld development team with AI support from Claude Code
…its own resolution

The fault-multigrid guide gains a fourth ruling from Louis's decision of
2026-11-02: the fault comes as a divided line or triangulated surface and
its points are the ladder's rungs, no parameter sets the along-strike
resolution, refinement around the fault is a separate question, and
split coarse levels are not developed further. Ruling 3's 2:1
sub-sampling clause is marked as the chain's. The production paragraph
and the split-level section say the chain stays as it is and the work
goes to the patch's cost. The convection guide's recipe takes the
trace's own points and a width, and its open sentence on split coarse
levels is closed.

Underworld development team with AI support from Claude Code
…e a wall-reaching fault

Both guides state the campaign drivers' uw_chain default as moved to 0
(b440b88 in the campaign repository, accepted on kaiju at np 16) and
cite the drivers' decisions ledger. The fault-multigrid guide's parallel
section replaces "never run here, first run pending" for conform seams
with the measured limit: the network mesher it needs cannot place a
fault whose cavity reaches the domain wall, and the ladder takes only
gather, so the patch cannot be divided across ranks for a
surface-reaching fault until one of the two changes.

Underworld development team with AI support from Claude Code
… the division nor the width is a knob

Ruling 4 of the fault-multigrid guide carries Louis's clarification of
2026-11-03: the fault's own points are the rungs and the band's width is
the local mesh size (an average where the mesh is not uniform); whether
the division is sufficient is observed, not set. The production
paragraph and the convection guide's recipe say so, and both say every
measurement to date used a band two rung spacings wide.

Underworld development team with AI support from Claude Code
…ut one cell apart

Louis's ruling of 2026-11-03 replaces the one-cell band of the previous
commit: the ladder's rungs are the fault's own points about one local
cell apart, its half-width is one cell, so the band is two cells wide,
and neither is a knob. Ruling 4, the production paragraph and the
convection guide's recipe give that form and say every measurement so
far used a band twice the rung spacing.

Underworld development team with AI support from Claude Code
…page and no longer says SVD

The rule said the free-slip annulus coarse solve is a dense SVD. Louis
ruled on 2026-11-05 that there is no SVD path (#901, the A-prime branch);
the coarse solve's rule lives on the multigrid preconditioning page, so
this guide keeps only the sizing rule, which holds before and after.

Underworld development team with AI support from Claude Code
@lmoresi

lmoresi commented Nov 6, 2026

Copy link
Copy Markdown
Member Author

Adversarial review of #862 at development eddab70

Independent pass, from the diff. Head c2ea156; docs only, so no behaviour was run; pixi run docs-build was not run. Verdict: ready with the changes below.

Findings

  1. Medium. The PR contradicts itself. The new Status line in design/fault-patch-multigrid-2026-08.md says the split-level work "is on feature/fault-split-multigrid"; the new guides/fault-multigrid.md says it merged on 2026-10-31 (Split-level fault multigrid, the thin-sheet solver, and sheet extrusion #889, The add-on partitioned once, custom multigrid on empty ranks, and the rotated solve's switch and record #890), and those merges are in eddab70. The Status line is wrong.
  2. Medium. guides/fault-multigrid.md (parallel section, item 2) says "The structural patch is one block per rank with no row cap". custom_mg.py:850-860 makes the structural block "one LU on one rank, as in serial". Say one block, on one rank.
  3. Low. The guide omits the UW_FAC_BLOCK_ROWS override (custom_mg.py:2118).
  4. Low. The quoted "the ribbon's cavity reached the domain wall" is a fragment of the message at place_surface.py:2584.
  5. Low, code side. The guide's seams="conform" is right, but the docstring at place_surface.py:9247 lists only {"gather","ligament"}, and the ValueError at :9341-9345 names only 'ligament'.
  6. Low. Numbers not checkable from the repo should name a source: 8.65 vs 8.74 F-cycles; 3584 and 7010 patch rows; 21-28 s per step; 66/65/67 and 83/118/166 iterations; 3-D "7 against 56"; b440b88 in lmoresi/uw3-campaigns.
  7. Taste. Session history and dated rulings fit a design note better than a guide.

Attacks that failed

Merge conditions

  • Fix findings 1 and 2.
  • Run pixi run docs-build and confirm no new warnings.
  • Name the source of the numbers in finding 6.

Underworld development team with AI support from Claude Code

…ank since #925, and sources named

Findings 1, 2, 3, 4 and 6 of the review of 2026-11-06. The design note's
status line says the split-level work merged (#889, #890), not that it
is on a branch. The parallel section says what #925 made true: the FAC
blocks are built from every rank's rows and each goes whole to one rank,
so the structural block is one LU on one rank at any rank count and
under any placement; conform seams would spread the band's cells, not
that block. It names the UW_FAC_BLOCK_ROWS override and quotes the
network mesher's refusal in full. The measured numbers name where they
are recorded: #629's design note and #892's ruling and budget comments.

Underworld development team with AI support from Claude Code

lmoresi commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Review of 2026-11-06, finding by finding (95a3b16, then development merged in at 86b17b0):

  1. Fixed. The design note's status line now says the split-level hierarchy merged to development on 2026-10-31 (Split-level fault multigrid, the thin-sheet solver, and sheet extrusion #889, The add-on partitioned once, custom multigrid on empty ranks, and the rotated solve's switch and record #890).
  2. Fixed, and it went further than the sentence. The np 16 measurement was at 25d6281, before FAC zone plus a split fault's structural rows: the solve hangs at np 4 (converges in serial) #925 (merged 2026-11-03). Since FAC zone plus a split fault's structural rows: the solve hangs at np 4 (converges in serial) #925 the FAC blocks are built from every rank's rows and each goes whole to the rank that owns most of them, so the structural block is one LU on one rank at any rank count and under any placement. The parallel section now says that. It also no longer claims that seams="conform" would divide the patch: conform would spread the band's cells, not that block.
  3. Fixed. UW_FAC_BLOCK_ROWS is named beside fac_block_rows.
  4. Fixed. The network mesher's refusal is quoted in full ("... away from the outcrop; the ribbon must clear the other walls").
  5. Code side, left to the dev hub: the seams docstring and the ValueError at place_surface.py do not name "conform".
  6. Sources named. The 2-D and 3-D counts point to Geometric aggregation for placed-hierarchy FMG: coarse levels as decimated point clouds, not band-only meshes #629's design note. The tail table points to Louis's ruling on Rotated path: FAC patch blocks run ILU(0), not the configured LU #892. The np 16 figures point to the Rotated path: FAC patch blocks run ILU(0), not the configured LU #892 budget comments. b440b88 already cites the campaign's decisions ledger.
  7. Kept. The dated rulings stay deliberately: a guide is where a session reads a ruling before acting, and the journal's rule for closing a question puts it there. The session history behind each ruling is in the journal entries the guide links.

The docs build adds no new warnings on the changed pages. The one remaining, fault-patch-multigrid-2026-08.md outside any toctree, is on development too, and this branch removes the one development has for faults-in-convection.md.


Generated by Claude Code

…rank; #934, not #925

With no zone keyed, the gathered FAC blocks put the structural rows of
every fault, a whole network's included, in one block on one rank, so the
patch's share of the solve grows with the number of faults as well as the
rank count; #934's measurements are single-fault, so a network's cost is
unmeasured. The change is PR #934, merged 2026-11-04 for issue #925, which
stays open. Correction from the notes session, checked against
custom_mg._gathered_patch_blocks on development.

Underworld development team with AI support from Claude Code

lmoresi commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Two corrections to my reply above, both now in the guide:

Found by the notes session and checked against custom_mg.py on development. The docs build is clean.


Generated by Claude Code

@lmoresi
lmoresi merged commit 96240b1 into development Nov 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants