You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FAC structural patch declined at np 2 on the linear fault fixture: 640 velocity iterations instead of 68 #896
Found while testing the slip coarse space (feature/fault-slip-coarse-space, #895). Reproduced on the #892 fix build (bugfix/fac-live-block-solver20b4293, development fc67b65 merged), where the code involved is development's.
What happens
On the linear fault fixture of UWTN 2026-022 (tail_sweep_linear.py, H0 hierarchy, h_b/S 24, 320 rungs), the finest level gets no FAC patch at np 2. The parallel structural split, _fac_patch_split_parallel, returns None from its cover gate (n_sub > cover_max * n_all, cover_max 0.75 when no fac_zone is keyed). The velocity block then runs the plain SOR smoother on every level.
ranks
rungs
finest smoother
velocity its, all applications (per application)
1
320
composite (FAC), 1 block
67
2
320
sor, no patch
640 (25)
2
320, UW_FAC_COVER=1.01
composite (FAC), 2 blocks, largest 15906 rows
68
2
80 / 160
composite (FAC)
71 / 70
4
320
composite (FAC), 4 blocks
70
Peak slip is the same in every arm. The gate declines only at np 2, and only at the finest band ratio. With the gate relaxed, the patch installed at np 2 converges like the serial and np 4 runs.
Not yet known
Why the summed subdomain exceeds 75% of the rows at np 2 and not at np 1 or np 4. The parallel subdomain sums each rank's rows, halo included, so overlap between ranks may count twice. That has not been measured.
Bearing
A split fault at np 2 with a fine band loses its patch smoother and runs ten times the iterations, with nothing printed.
Underworld development team with AI support from Claude Code
Diagnosis: background rows counted as patch, not halos counted twice
_fac_patch_split_parallel counts only owned rows (sub_local indexes [rstart, rend)), so no row is counted on two ranks. The excess comes from one classification rule. An owned fine row whose identity coarse column this rank does not hold (c_local_of_global.get(...) < 0) is classified as patch, without the coincidence check.
The add-on partition gathers the fault onto one rank, while the coarse levels keep the base partition. On every other rank, many background rows then point at coarse nodes held elsewhere.
We counted each reason per rank, on the same fixture (tail_sweep_linear.py, H0, 320 rungs), with a copy of the function that tallies them. The build is bugfix/fac-live-block-solver24e754f.
np
rank
owned
interpolated (band)
coarse node not held
halo
subdomain
2
0
15798
15366
144
100
15610
2
1
9410
0
4474
0
4474
4
0
3348
0
1462
0
1462
4
1
15868
15366
266
74
15706
4
2
2926
0
324
0
324
4
3
3066
0
690
0
690
No row was unmapped, moved or promoted as a duplicate.
np 2: cover 20084 / 25208 = 0.797, so the patch is declined. Without the not-held rows it is 15610 / 25208 = 0.619.
np 4: cover 18182 / 25208 = 0.721, so the patch is installed, but only just. The not-held rows are 2742, 10.9% of the level.
The band itself is 61-62% of the finest level at any rank count. The not-held fraction depends on how the gathered level and the coarse partition happen to overlap, which is why np 2 declines and np 4 does not. Where the gate passes, these rows still go into the subdomain. Ranks with no band then factor background blocks by LU: 1462, 324 and 690 rows at np 4.
Fix proposed. Fetch the coordinates of the coarse rows this rank references but does not hold, by global coarse row (one scatter per level), and apply the same identity-and-coincidence test to them. Then a background row is background whichever rank holds its coarse node. The duplicate check would key on the global coarse column. This is no worse than today for split pairs on different ranks, which the rank-local check misses either way.
Underworld development team with AI support from Claude Code
Fixed on bugfix/fac-cover-gate-partition (stacked on bugfix/fac-live-block-solver, #892). No PR yet.
Fix._fac_patch_split_parallel now fetches the coarse rows a rank references but does not hold (_append_remote_coarse_nodes). It is one collective scatter carrying each node's coordinates, its component, and a key unique to the node, so a split coarse pair stays two nodes. The fetched nodes are appended to the rank's node table, and the coincidence, duplicate and halo tests run unchanged on every row.
Test.tests/parallel/test_1106_fac_cover_partition_parallel.py (tier B) solves the linear fixture at 80 rungs on a structured base. It asserts that the finest level's patch rows, summed over the ranks, equal the serial count and that the patch is installed. The result:
parent: 4780 serial, 6890 at np 2;
branch: 4780 at np 1, 2 and 4.
The review also compared the rows themselves, as (x, y, component) multisets, on the 2-D fixture and on test_1095's 3-D split box (72062 rows): identical to serial at np 2.
linear fixture, 320 rungs
finest smoother
ASM rows, summed
velocity its, all applications
peak slip
serial
FAC
15870
67
0.1592095
np 2, parent
SOR (declined)
—
640
0.1592095
np 2, branch
FAC
15870
73
0.1592095
np 4, parent
FAC
19126 (3256 background)
70
0.1592096
np 4, branch
FAC
15870
71
0.1592095
What stays rank-local, as before.
The duplicate test is rank-local. Both copies of a split pair are owned by one rank (ptest_0865 pins that for a split through a seam), so it sees both.
The halo is the background rows whose coarse node one of this rank's own patch rows references. Where a partition boundary runs along the band edge, it can miss a layer that the serial halo has. ASM's overlap of 1 adds a layer back through the operator. On both real fixtures the subdomain is identical to serial.
My diagnosis comment above said the branch would be "no worse than today" for split pairs on different ranks. That was loose. In a synthetic layout with a pair straddling ranks, the parent caught 2 of 4 duplicate rows through the old not-held rule, by accident, and the branch catches none. No split path produces that layout.
Not checked: the production shapes at np 16 (kaiju's annulus, with the fault gathered onto one rank). The laptop is capped at 8 cores.
Underworld development team with AI support from Claude Code
Fixed by #914 (merged to development, dbb4d72): the FAC cover gate fetches the coarse nodes a rank references but does not hold, and classifies every row against its own coarse node. On UWTN 2026-022's 320-rung linear fixture at np 2 the patch is installed again: 73 velocity iterations, against 640 before and 67 in serial. The np 16 production shapes are still to be checked on kaiju.
Underworld development team with AI support from Claude Code
Activity
lmoresi commentedon Oct 30, 2026
Diagnosis: background rows counted as patch, not halos counted twice
_fac_patch_split_parallelcounts only owned rows (sub_localindexes[rstart, rend)), so no row is counted on two ranks. The excess comes from one classification rule. An owned fine row whose identity coarse column this rank does not hold (c_local_of_global.get(...) < 0) is classified as patch, without the coincidence check.The add-on partition gathers the fault onto one rank, while the coarse levels keep the base partition. On every other rank, many background rows then point at coarse nodes held elsewhere.
We counted each reason per rank, on the same fixture (
tail_sweep_linear.py, H0, 320 rungs), with a copy of the function that tallies them. The build isbugfix/fac-live-block-solver24e754f.No row was unmapped, moved or promoted as a duplicate.
The band itself is 61-62% of the finest level at any rank count. The not-held fraction depends on how the gathered level and the coarse partition happen to overlap, which is why np 2 declines and np 4 does not. Where the gate passes, these rows still go into the subdomain. Ranks with no band then factor background blocks by LU: 1462, 324 and 690 rows at np 4.
Fix proposed. Fetch the coordinates of the coarse rows this rank references but does not hold, by global coarse row (one scatter per level), and apply the same identity-and-coincidence test to them. Then a background row is background whichever rank holds its coarse node. The duplicate check would key on the global coarse column. This is no worse than today for split pairs on different ranks, which the rank-local check misses either way.
Underworld development team with AI support from Claude Code
#896: classify a fine row against its coarse node wherever that node …
#896 review: a structured test base, the rank-local parts stated, dea…
lmoresi commentedon Oct 30, 2026
Fixed on
bugfix/fac-cover-gate-partition(stacked onbugfix/fac-live-block-solver, #892). No PR yet.Fix.
_fac_patch_split_parallelnow fetches the coarse rows a rank references but does not hold (_append_remote_coarse_nodes). It is one collective scatter carrying each node's coordinates, its component, and a key unique to the node, so a split coarse pair stays two nodes. The fetched nodes are appended to the rank's node table, and the coincidence, duplicate and halo tests run unchanged on every row.Test.
tests/parallel/test_1106_fac_cover_partition_parallel.py(tier B) solves the linear fixture at 80 rungs on a structured base. It asserts that the finest level's patch rows, summed over the ranks, equal the serial count and that the patch is installed. The result:The review also compared the rows themselves, as (x, y, component) multisets, on the 2-D fixture and on test_1095's 3-D split box (72062 rows): identical to serial at np 2.
What stays rank-local, as before.
My diagnosis comment above said the branch would be "no worse than today" for split pairs on different ranks. That was loose. In a synthetic layout with a pair straddling ranks, the parent caught 2 of 4 duplicate rows through the old not-held rule, by accident, and the branch catches none. No split path produces that layout.
Not checked: the production shapes at np 16 (kaiju's annulus, with the fault gathered onto one rank). The laptop is capped at 8 cores.
Underworld development team with AI support from Claude Code
lmoresi commentedon Oct 31, 2026
Fix in PR #914.
Underworld development team with AI support from Claude Code
test_1106: the serial band count is recorded per host
Merge pull request #914 from underworldcode/bugfix/fac-cover-gate-par…
lmoresi commentedon Oct 31, 2026
Fixed by #914 (merged to development, dbb4d72): the FAC cover gate fetches the coarse nodes a rank references but does not hold, and classifies every row against its own coarse node. On UWTN 2026-022's 320-rung linear fixture at np 2 the patch is installed again: 73 velocity iterations, against 640 before and 67 in serial. The np 16 production shapes are still to be checked on kaiju.
Underworld development team with AI support from Claude Code
#925 review: cut the zone blocks once on rank 0, nodes by coordinate
#925 review 2: a keyed zone beats detection in parallel too; docstrin…
underworldcode#896: test that the FAC band patch is the same rows at …