Skip to content

The FAC cover gate takes a split fault level's patch up to 98 % of its rows (#918) - #932

Merged
lmoresi merged 14 commits into
developmentfrom
bugfix/fac-cover-gate-structure-918
Nov 4, 2026
Merged

lmoresi merged 14 commits into
developmentfrom
bugfix/fac-cover-gate-structure-918

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

The FAC cover gate declined a level's patch when the patch plus its halo exceeded 75 % of the level's rows, and said nothing. The gate exists for uniform refinements, whose halo reaches every row. A placed split fault level crosses 75 % by size alone, yet keeps an untouched background outside its patch and halo: 38, 24 and 14 % of the rows at h_b/S = 24, 48 and 97 on UWTN 2026-022's linear fixture. Declined, the finest level falls back to whole-level SOR, which converges the band slowly: 909 and 1487 velocity iterations at h_b/S = 48 and 97, summed over 17 applications, against 66 with the patch.

The rule as shipped

  • A 2-D level that carries a split fault: 0.98. It declines only when under 2 % of its rows lie outside the patch and halo.
  • A 3-D split level: 0.75, as on development. On development's test_1097 (a 3-D sheet on a partitioned adapt child) the split level's patch and halo are 94 % of its rows. At 0.98 the gate took them: one 3-D LU over 84 435 rows, 463 s and 6.3 GB serially against 35 s and 1.6 GB with whole-level SOR, and CI's shard 4 ran past its 60-minute cap. Every measurement behind 0.98 is 2-D. The 3-D threshold is a placeholder until the 3-D add-on is measured, which decides between a different threshold and a bounded block (FAC structural patch cost: since #934 every fault's rows (a network's included) are one LU on one rank; 3-D and parallel cost unmeasured #895).
  • Every other level: 0.75, as on development.
  • CustomMGHierarchy._fac_cover_max(l) picks the threshold (_FAC_COVER_MAX, _FAC_COVER_MAX_SPLIT in custom_mg). The split marker, fault_mg.is_split_level, is the same on every rank, and the parallel verdict comes from global counts.
  • The verdict is recorded per level on hierarchy.fac_gate: rows, patch and halo rows, taken. set_custom_fmg(..., verbose=True) prints it. The mesh-owned and auto-injected hierarchies do not print; their record is at solver._custom_mg["hierarchy"].fac_gate. The FAC cover gate declines a large fault patch silently, and the velocity solve then takes 14-22 times the iterations #918 asked for the verdict to be logged either way; it is recorded on every route and printed only under verbose.
  • The record is the gate's verdict. Install drops a renumbered coarse level's patch afterwards, and the rotated path drops every coarse level's patch.
  • UW_FAC_COVER is removed. A campaign driver that sets it now gets this rule without a message.
  • fault-split-multigrid.md gains "When a level takes the FAC patch", which names every route below.

The rule is narrower than #918's proposal

#918 proposed taking the patch on every level whenever at least 2 % of its rows lie outside the patch and halo. Two routes that the issue's fixture never reached fail under that rule, so it ships on split levels only.

Merge gate: Louis accepts this narrowing (0.98 on 2-D split levels, 0.75 elsewhere, 3-D included) in place of the 2 % rule on every level.

  1. Wide adapt children, with no split. A mesh.adapt child with a widened metric, on the default route with no set_custom_fmg call, had its patch and halo at 94.7 % and 97.8 % of the finest level. The 2 % rule took both. In the first, the live LU block after PCASM's overlap held 99.6 % of the level's rows. The measurements behind The FAC cover gate declines a large fault patch silently, and the velocity solve then takes 14-22 times the iterations #918 were all on split levels, so a level without a split keeps 0.75. These adapt children are a library route, not the add-on's method; the tests keep them as a guard for that route.
  2. The cut uniform pair. add_fault (2-D) or split_fault (3-D) on a refined base keeps the base's coarse levels. The finest pair is then a uniform refinement plus the cut, and its patch and halo are the whole level: 3896 of 3896 rows on fault_fixtures.base_2d, 11035 of 11035 on test_1095's 3-D patch box. Taking it is one LU over the whole level, where whole-level SOR converges it in 8 velocity iterations (2-D) and 4 (3-D). So a split level still declines above 98 %.

The welded add-on (an adapt child, then add_fault(split_levels=False)) is split over unsplit coarse levels and falls under 0.98 too. Its patch and halo grow with the metric's width: 30 % at 0.08, 82 % at 0.6, 96 % at 1.0. At 96 % it takes one LU block over 96 % of the level and converges in 2 velocity iterations, against 13 with the gate forced to decline (whole-level SOR). With the cut pair at 100 %, that pins the split threshold between 0.963 and 1.

The background outside a placed band shrinks as the band refines, so a band fine enough declines again: by extrapolation near h_b/S = 200 on a 1/16 base and 800 on a 1/32 base, in 2-D. In 3-D the band's rows grow as (h_b/S)². Bounding the block instead of declining it is #895.

Row 3 of the add-on matrix

UWTN 2026-022's problem A: a unit box in simple shear with a straight frictionless fault, base h_b = 1/32, the band refined through the rung count. The hierarchy is the welded base, then the split S level with the FAC LU patch. Velocity iterations are summed over the second solve's applications (17 serially).

rungs (h_b/S) ranks patch + halo development, 0.75: declined this branch, 0.98: taken
640 (48) 1 76 % 909 65
640 (48) 2 76 % 1083 74
640 (48) 4 76 % – 73
1280 (97) 1 86 % 1487 68
1280 (97) 4 86 % – 73

The development column ran on the laptop (macOS; development 25d6281 with #906, inert here). The branch column ran on kaiju (Linux): np 1 and 2 before the development merge, np 4 at bcf8955. On the laptop, with the gate forced open, the same solves took 66, 74 and 66.

Tests

  • tests/test_1134_fac_cover_gate_structure.py (level 2, tier B, serial batch 4) builds test_1017's NVB band hierarchy with the band widened to half-width 0.3.
    • The band level has no split. Its patch and halo are 355 of 417 rows (85 %; 356 on kaiju, recorded per host), and it declines.
    • The uniform level below it declines at 225 of 225 rows.
    • Both verdicts are asserted on fac_gate. The test fails if a level without a split takes an 85 % patch, as under the 2 % rule.
  • tests/parallel/test_1134_fac_cover_gate_split_parallel.py (level 2, tier B; np 1 in CI's serial phase, np 2 in the MPI phase):
    • A split ladder of 160 rungs on a 1/16 base (h_b/S = 24), patch and halo 85 % of the rows, is taken at any rank count with the same record on every rank. Development declines it.
    • The cut uniform pair (add_fault on base_2d) declines above 98 %.
    • The welded add-on at metric width 1.0 is taken between 95 and 98 %.
  • test_1106's docstring states the 98 % gate.
  • A 3-D split level keeps 0.75: tests/parallel/test_1134 checks the threshold on a small 3-D split box (it failed first, 4802b5e), and test_1097's fault solve asserts that its 94 % split level declines (15340c0).

On kaiju (Linux):

scripts/test.sh gains two lines in serial batch 4. The branch carries development through #927 (26056a5); batch 4 keeps both tests/test_1134*py and #927's tests/test_1136*py.

Closes #918. Left open in this territory: #895, #897, and #921 (the next PR in this stack); verdicts in the review comment.

Underworld development team with AI support from Claude Code

test_1017's NVB band hierarchy, with the band widened to half-width 0.3: the
finest level's subdomain is 355 of 417 rows (85 %), over the 75 % gate, while
62 background rows lie outside it. On development the gate declines it. The
uniform level (225 rows, all in the subdomain) must still decline, and both
verdicts are to be recorded on the hierarchy (fac_gate).

Underworld development team with AI support from Claude Code
The gate declined the finest level's patch when patch plus halo exceeded
75 % of the rows, and said nothing. A locally refined fault level crosses 75 %
by size alone: UWTN 2026-022's linear fixture at h_b/S = 48 and 97 lost its
patch and took 909 and 1487 velocity iterations against 66 with it. A uniform
pair, which the gate exists to skip, has no row outside patch plus halo; those
fault levels kept 24 % and 14 % outside.

_fac_patch_split and _fac_patch_split_parallel now decline only when fewer
than background_min (2 %) of the level's rows lie outside patch plus halo,
from the global counts in parallel. The UW_FAC_COVER campaign knob is gone,
and the zone paths pass background_min=0 where they passed cover_max=1.01.
Each verdict is recorded on hierarchy.fac_gate (rows, patch+halo rows,
taken), and set_custom_fmg(..., verbose=True) prints it.

test_1134 runs in CI batch 4; the subsystem doc says how the gate decides.

Underworld development team with AI support from Claude Code
…ne keeps the gate

The review found that the background rule (decline under 2 % outside) takes
95-98 % patches on wide adapt children, an LU over nearly the whole level,
unmeasured, and still declines a split level once its band is fine enough
(the 909-iteration case returns past h_b/S of about 800 in 2-D). The
measurements behind #918 were all on split levels.

tests/parallel/test_1134: the linear fault on a 1/16 base at 160 rungs, whose
split level's patch and halo are 85 % of its rows, must take its patch at
any rank count; development declines it. tests/test_1134: the NVB band at
85 %, which has no split, now must decline, as on development, and both
verdicts are recorded on fac_gate. The 2 % rule of cec822d takes the band,
so this test fails on it.

Underworld development team with AI support from Claude Code
…els keep the gate

cec822d declined a patch only when under 2 % of the level lay outside patch
plus halo. The review found two problems with that rule, measured serially:
- a wide adapt child on the default route (no set_custom_fmg) now took
  patches of 94.7 % and 97.8 % of its rows, one LU block over nearly the
  whole level, where the old gate declined;
- a split level still declines once its band is fine enough, because the
  background shrinks as the band refines (38, 24, 14 % at h_b/S 24, 48, 97).

The measurements behind #918 were all on split levels, so the change is now
made there only. A level that carries a split fault (fault_mg.is_split_level,
the same on every rank) passes cover_max=None and takes its structural patch
whatever its size; its rows are rows the coarse level cannot represent, and
whole-level SOR does not converge them. Every other level keeps the 75 % gate
(_FAC_COVER_MAX), exactly as on development. The zone paths pass None where
they passed 1.01. UW_FAC_COVER stays removed.

Also from the review: fac_gate holds None wherever the gate did not run (it
held {} on two paths); its comment says it is the gate's verdict, before
install drops a renumbered coarse level's patch; the comment on the zone
path says the structural rows are added only under UW_FAC_STRUCTURAL (#921
is still open); test_1106's docstring no longer describes the 0.75 gate as
current. The subsystem doc says what ships.

Underworld development team with AI support from Claude Code
add_fault on a refined base keeps the base's coarse levels, so the split
finest pair is a uniform refinement plus the cut and its patch and halo are
the whole level (3896 of 3896 rows on fault_fixtures' base_2d). c8ecbf9
takes it, one LU over the entire level; development declines it, and
whole-level SOR converges it (test_1095's serial baseline, 4 velocity
iterations). The split level must decline when under 2 % of its rows lie
outside patch and halo.

Underworld development team with AI support from Claude Code
…rs keep 0.75

c8ecbf9 took a split level's patch at any size. The second review found
the default add_fault / split_fault route on a refined base: the cut child
keeps the base's coarse levels, its finest pair is a uniform refinement plus
the cut, and its patch and halo are the whole level (3896/3896 rows in 2-D,
11035/11035 on test_1095's 3-D patch box). That level now got one LU over
everything, where development declined it and whole-level SOR converged it
in 4 velocity iterations.

A level that carries a split fault now declines when under 2 % of its rows
lie outside patch and halo (_FAC_COVER_MAX_SPLIT = 0.98): a placed fault
level keeps 14-38 % outside at h_b/S 24-97 and takes its patch; a cut
uniform pair declines, in parallel too where the rank-local halo can leave
a few rows outside. Every other level keeps 0.75 (_FAC_COVER_MAX).
CustomMGHierarchy._fac_cover_max(l) picks the threshold. The claim that
whole-level SOR does not converge a split's rows is scoped to the placed
band, 24-97 times finer than the coarse level. The doc says the rotated
path drops every coarse patch after the gate records it, that only
verbose=True prints the verdict, and that a band fine enough declines again
(#895). set_custom_fmg documents verbose.

Underworld development team with AI support from Claude Code
From the third review:
- The welded add-on (an adapt child, then add_fault(split_levels=False)) is
  split over unsplit coarse levels and gets the 98 % gate. Its patch and halo
  grow with the metric's width (30 % at 0.08, 82 % at 0.6, 96 % at 1.0);
  taken, the 96 % case is one LU over 96 % of the level for 2 velocity
  iterations against 13 with whole-level SOR. The doc now names this route
  and its numbers; tests/parallel/test_1134 adds it, which with the cut pair
  at 100 % pins the split threshold between 0.963 and 1.
- "Whole-level SOR does not converge" the placed band was too strong: the
  declined runs converged, in 909 and 1487 velocity iterations summed over 17
  applications (about 53 and 87 each) against 66.
- The cut pair's SOR count is cited from this 2-D base (8 iterations), with
  test_1095's 3-D patch box (4) beside it.
- The decline limit is quoted per base (about h_b/S 200 on 1/16, 800 on
  1/32, in 2-D), with the band's (h_b/S)^2 growth in 3-D.
- verbose=True prints on either path; mesh-owned and auto-injected
  hierarchies do not. Serial builds gate every level the split runs on.
- The tier marks sit on each test (Charter section 8); test_1106's docstring
  states the 98 % gate; a redundant import is gone.

Underworld development team with AI support from Claude Code
Kaiju (Linux x86_64, PETSc 3.25.0) counts 356 patch+halo rows on the NVB
band level where macOS arm64 counts 355; the level's 417 rows and the
declined verdict agree. The test keeps those exact and accepts the
recorded count of either host, as test_1106 does.

Underworld development team with AI support from Claude Code
…k solver (#929)

The cover gate's record (fac_gate) and the patch summary's reset sit side by
side at build; test.sh's batch 4 carries test_1133 and test_1134.

Underworld development team with AI support from Claude Code
scripts/test.sh: batch 4 keeps both entries, tests/test_1134*py (#918) and
tests/test_1136*py (#920). check_test_coverage: all 386 test files reachable.

Underworld development team with AI support from Claude Code
The doc and test_1134's docstring cited test_1095 under "add_fault on a
refined base". test_1095 cuts its 3-D patch box with split_fault; the
mechanism is the same (a uniform pair plus the cut), so the case now names
both.

Underworld development team with AI support from Claude Code
Copilot AI balanced review requested due to automatic review settings November 3, 2026 10:25
@lmoresi

lmoresi commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Pre-PR adversarial review

Three rounds by independent reviewers, each followed by fixes: round 1 on cec822d (the 2 % rule on every level, over 25d6281), round 2 on c8ecbf9, round 3 on e793bdf. Rounds 2 and 3 also covered #921, which is stacked on this branch. The reviewers' probes were serial; kaiju ran the parallel cases afterwards.

Round 1 (cec822d: decline under 2 % background, every level)

  • HIGH: the default adapt-child route took one LU over nearly the whole finest level. A mesh.adapt child with test_0836's band metric widened to 0.3, with no set_custom_fmg call: patch and halo 94.7 % of 3115 rows (max_levels 1) and 97.8 % of 5615 (max_levels 2). The 2 % rule took both, where 0.75 declined them. The live block after PCASM's overlap was 3101 of 3115 rows, LU. Fixed in c8ecbf9: a level without a split keeps 0.75. tests/test_1134 (01f562d) pins an unsplit band at 85 % as declined.
  • MEDIUM: the decline cliff moves but stays. The background shrinks as the band refines (38, 24, 14 % at h_b/S 24, 48, 97). Documented: the doc gives the extrapolated limit per base and points to FAC structural patch cost: since #934 every fault's rows (a network's included) are one LU on one rank; 3-D and parallel cost unmeasured #895, which would bound the block instead.
  • MEDIUM: a decline is still silent on the default routes. Kept. The verdict is recorded on fac_gate on every route and printed only under verbose=True; the mesh-owned and auto-injected routes register verbose: False. The doc says where the record is.
  • MEDIUM: a new comment repeated With fac_zone keyed, the FAC patch leaves out a split fault's structural rows, against its documentation #921's documentation error (structural rows "always added" with a zone keyed). Fixed in c8ecbf9: the comment says they are added only under UW_FAC_STRUCTURAL, which With fac_zone keyed, the FAC patch leaves out a split fault's structural rows, against its documentation #921 removes.
  • MEDIUM: serial gates every level, parallel only the finest, and the doc named only the finest. No coarse level changed verdict in the probed hierarchies. The doc now states both (e793bdf, faf80fe).
  • LOW:
    • fac_gate reads "taken" for a coarse patch that install or the rotated path drops later. Documented (c8ecbf9, e793bdf).
    • "Gate not run" was {} on two paths and None on a third. Fixed in c8ecbf9: None.
    • No np ≥ 2 test of the verdict. Fixed: tests/parallel/test_1134 (01f562d).
    • test_1106's docstring described the 0.75 gate as current. Fixed (c8ecbf9, faf80fe).
    • Campaign drivers outside the repo set UW_FAC_COVER, which is now ignored without a message. The PR body says so.

Round 2 (c8ecbf9: split levels at any size, other levels 0.75)

  • HIGH: the cut uniform pair took an LU over its whole level. add_fault on a refined 2-D base (3896 of 3896 rows) and split_fault on test_1095's 3-D patch box at refinement 1 (11035 of 11035) were both taken, one block per rank over the whole finest level. Development declined them, and whole-level SOR converged (test_1095's serial baseline: 4 velocity iterations). Fixed in e793bdf: a split level declines above 98 %. The test came first (0412cda) and fails on c8ecbf9, which takes 3896 of 3896.
  • MEDIUM: "whole-level SOR does not converge" a split's rows was stated as general, against test_1095's baseline. Fixed: scoped to the placed band (e793bdf), then "converges slowly" (faf80fe). The 909 and 1487 are sums over 17 applications, about 53 and 87 each, against about 4.
  • LOW: set_custom_fmg did not document verbose. Fixed in e793bdf.
  • LOW, outside the diff: "a split fault needs no patch" in five comments (place_surface.py, fault_split.py twice, discretisation_mesh.py, custom_mg.py) reads against this branch. Left: it means no zone key, and the structural patch is automatic.
  • LOW (Charter §1): gate= is a dict the callee fills. Left as is.

Round 3 (e793bdf: 0.98 on split levels, 0.75 elsewhere)

  • MEDIUM: the welded add-on gets the split threshold with no background guarantee. An adapt child, then add_fault(split_levels=False): patch and halo 30 / 43 / 82 / 96 / 99.95 % at metric widths 0.08 / 0.3 / 0.6 / 1.0 / 2.0. At 1.0 the patch is taken, one LU block of 25850 of 26846 rows, and the solve takes 2 velocity iterations; where whole-level SOR ran (width 0.6 under 0.75, width 2.0) it took 13, and 13 again at width 1.0 with the gate forced to decline (checked before this PR). Kept and documented with these numbers (faf80fe). tests/parallel/test_1134 adds the width-1.0 case.
  • LOW:
    • The threshold was not pinned: the two split tests passed for any value in (0.852, 1). Fixed by the welded case, which with the cut pair pins it in (0.963, 1) (faf80fe).
    • The doc cited test_1095 for add_fault; test_1095 is split_fault on a 3-D box. Fixed: the 2-D cut pair's own count (8) is cited, with test_1095's (4) beside it.
    • The h_b/S ≈ 800 decline limit was one base's. Fixed: about 200 on a 1/16 base and 800 on 1/32, in 2-D.
    • The doc said the rotated route does not print; set_custom_fmg(verbose=True) prints on either path. Fixed.
    • "Serial builds gate every level" left out pairs touching a split coarse level. Fixed.
    • The tier sat on the module; test_1106 still said "at any cover"; a redundant import. Fixed in faf80fe.
  • Outside the diff, flagged only: test_1087's docstring records 13 iterations for the welded tail at k = 3, where the probe measures 5 (stale since Rotated path: FAC patch blocks run ILU(0), not the configured LU #892).

faf80fe was reviewed through the final check of #921's branch, which merges it (d0590d2); that check found nothing in the repo. 00f0668 records the band level's count per host (356 on kaiju, 355 on macOS). bcf8955 merges development (#928, #929): fac_gate and the patch summary's reset sit side by side at build. 26056a5 merges development through #927 (batch 4 keeps both test lines), and 0a11963 names split_fault for test_1095's 3-D box in the doc and in test_1134's docstring.

Attacks that failed

  • Rank asymmetry. The verdict comes from allreduced integer counts and fac_gate is filled after them. is_split_level reads keys that every rank holds: split_fault sets them on every rank, and redistribution rebuilds them from allgathered names.
  • The parallel halo pushing a cut uniform pair under 98 %. Under PETSc's ownership vote every background row's owner holds a patch row that references its coarse node, so the cover stays at 100 %. The cut-pair case of tests/parallel/test_1134 passes at np 2 and 4.
  • A near-uniform NVB level: 1 background row in 1165, declined.
  • The verbose print raising on any route.
  • Host dependence of test_1134's counts: a regular mesh, and 225 = 15². Kaiju then counted 356 for the band's 355, recorded per host.
  • CI reach: both files in serial batch 4, the parallel file in the MPI phase; check_test_coverage.py reports every file reachable.

Verified on kaiju (Linux)

Merge condition

Issues in this territory

Issue Verdict
#918 Fixed by this branch over the measured range (h_b/S 24-97, 2-D): test_1134 in tests/ and tests/parallel/, row 3 on kaiju. The verdict is recorded on every route and printed only under verbose=True.
#895 Still live. Nothing but this gate bounds the structural block, now at 98 % on split levels, and a placed band fine enough declines again.
#921 Still live on this branch; fixed by the next PR in this stack.
#896 Already fixed (fixed-in-development). The verdict still comes from global counts, and test_1106 still enforces it.
#892 Already fixed (fixed-in-development). The LU sub-solve path is untouched.
#897 Still live: the solver method set_custom_fmg takes no fac_zone, fac_block_rows or cross_partition.
#893, #899, #902, #873, #885 Still live; this diff does not touch their code paths.

Underworld development team with AI support from Claude Code

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.

🔵 Needs a closer look

Louis's required acceptance of the solver policy using 0.98 for split levels and 0.75 elsewhere remains pending in the available PR and issue discussion.

No open issues 🎉

What changed in this PR

This PR addresses #918 by allowing larger FAC patches on split-fault multigrid levels while retaining the existing limit on unsplit levels. It implements a narrower rule than the issue’s proposal.

Changes:

  • Raises the patch-plus-halo limit to 98% for split levels, keeps 75% elsewhere, and removes UW_FAC_COVER.
  • Records per-level gate verdicts in hierarchy.fac_gate, with printing enabled by verbose=True.
  • Adds serial and parallel regression coverage and documents the thresholds and affected hierarchy routes.
File Description
tests/​test_1134_fac_cover_gate_structure.py Tests rejection and recorded verdicts for unsplit band and uniform levels.
tests/​parallel/​test_1134_fac_cover_gate_split_parallel.py Tests split-patch acceptance, cut-uniform rejection, and rank-consistent verdicts.
tests/​parallel/​test_1106_fac_cover_partition_parallel.py Updates the docstring to describe the 98% split-level limit.
src/​underworld3/​utilities/​custom_mg.py Implements split-aware thresholds, verdict recording, and verbose reporting.
scripts/​test.sh Adds the new regression tests to serial batch 4.
docs/​developer/​subsystems/​fault-split-multigrid.md Documents gate behavior, measurements, and diagnostic access.

Review effort: Balanced

claude and others added 3 commits November 3, 2026 11:28
One conflict in scripts/test.sh, adjacent batch-4 lines (test_1138 from #930,
test_1134 from this branch); both kept.

Underworld development team with AI support from Claude Code
CI's shard 4 timed out on this branch inside test_1097 (development's 3-D
sheet on a partitioned adapt child): 2:21 on development, still running
after 4:57 here. Serially, its split level's patch and halo are 84435 of
89520 rows (94 %). The 0.98 gate takes them: one 3-D LU, 463 s and 6.3 GB,
against 35 s and 1.6 GB declined at 0.75. The 0.98 evidence is all 2-D.

The test builds a small 3-D split box (test_1095's geometry, 2.4 s) and asserts
its split level's threshold is 0.75. It fails here (0.98).

Underworld development team with AI support from Claude Code
_fac_cover_max takes 0.98 only on a 2-D level that carries a split fault.
On development's test_1097 (a 3-D sheet on a partitioned adapt child) the
split level's patch and halo are 94 % of its rows. At 0.98 the gate took
them: one 3-D LU over 84 435 rows, 463 s and 6.3 GB serially, against 35 s
and 1.6 GB with whole-level SOR. In CI that pushed shard 4 past its 60 min
cap. The 0.98 evidence (row 3, the welded and cut-pair cases) is all 2-D.

- test_1134 (tests/parallel): a 3-D split box gets 0.75 (failed first,
  previous commit).
- test_1097: its fault solve asserts that the split level declines and that
  its patch and halo sit above 0.75, so the 3-D gate cannot widen silently.
  This costs nothing extra: the test already solves that level.
- fault-split-multigrid.md and the custom_mg comments state the 2-D scope.
  The 3-D threshold is a placeholder until the 3-D add-on is measured; that
  measurement decides between a different threshold and a bounded block
  (#895).

Serial: test_1134 (both files) 6 passed. test_1097's solve is np >= 2 (CI).

Underworld development team with AI support from Claude Code
@lmoresi

lmoresi commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Review addendum: the 0.98 gate regressed 3-D, fixed on this branch

CI's shard 4 hit its 60-minute cap on all three stacked PRs. The log stopped inside development's test_1097, a 3-D sheet on a partitioned adapt child. That test took 2:21 on development and was still running after 4:57 here. We ran its fault solve serially on this branch's library at both thresholds. The split level's patch and halo are 84 435 of 89 520 rows (94 %):

split-level threshold verdict solve velocity its peak memory
0.75 (development) declined 35 s 4 1.6 GB
0.98 (this branch before the fix) taken: one 3-D LU over 84 435 rows 463 s 1 6.3 GB

Every measurement behind 0.98 is 2-D, so 0.98 now applies to 2-D split levels only. A 3-D split level keeps development's 0.75 (15340c0).

  • tests/parallel/test_1134 checks a small 3-D split box's threshold. It failed first, in 4802b5e.
  • test_1097's fault solve asserts that its 94 % split level declines, which costs CI nothing extra.

The 3-D threshold is a placeholder until the 3-D add-on is measured. That measurement decides between a different threshold and a bounded block (#895). The body's rule section and merge gate now say 2-D. #933 and #934 carry the fix (998ff4a, e4eee30).

Underworld development team with AI support from Claude Code

@lmoresi
lmoresi merged commit 2556c97 into development Nov 4, 2026
8 checks passed
lmoresi added a commit that referenced this pull request Nov 4, 2026
…fix/custom-mg-many-ranks

Clean merge; 99 commits behind before it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants