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
The co-located multigrid tail fails at np=3 on the 3-D width network: a Galerkin coarse operator with a missing diagonal, and a 10% slip error #671
Found while measuring the placement gather (#670) on the crossing-patches fixture (tests/parallel/ptest_0863, split realisation, linear viscous + contact). np=2 and np=4 reproduce the serial slips to five digits; np=3 does not, in two different ways depending on the partition.
With the placement gather as on development (the wide mark of #670), np=3 completes the solve but the smallest piece is 10% low:
AssertionError: Cross_2: parallel peak 0.0027 vs serial 0.00295
Main and Cross_1 pass. The velocity block is custom-FMG, as asserted.
With the tightened gather mark (branch feature/placement-local-gather, which moves about half as many cells and so changes the partition of the fine level), np=3 fails in the multigrid setup on rank 2, reproducibly:
[2]PETSC ERROR: Argument out of range
[2]PETSC ERROR: New nonzero at (1497,1497) caused a malloc.
#3 MatDiagonalSet_Default ... #8 MatGalerkin ... #9 PCSetUp_MG
A Galerkin coarse operator with no diagonal entry means a coarse degree of freedom that no fine row maps to, i.e. a zero column in the transfer that the parallel repair (_repair_zero_columns_parallel) did not catch, or a coarse row that is owned on a rank with no fine image on that rank. The serial path repairs such columns; the parallel guard is the piece the design note (fault-patch-multigrid-2026-08.md, parallel rule 5) lists as needing a parallel form.
Both symptoms are in the co-located tail (#662) at three ranks, not in the placement. np=3 was the rank count the design rule said to test, and neither ptest_0863 nor the other network ptests run at np=3 in CI (they are not in scripts/test.sh's globs at all).
Underworld development team with AI support from Claude Code
Second occurrence, np=4, on a different layout: two faults in one network (split realisation) on a [-0.5, 1.5]^3 base, band gathered onto rank 2 with 12,803 of 28,656 cells. Same signature, on rank 0 this time:
[0]PETSC ERROR: New nonzero at (1599,1599) caused a malloc.
#3 MatDiagonalSet_Default ... #6 MatDiagonalSet_MPIAIJ
The crossing-patches fixture passes at np=4 with the band on rank 3, so the defect is partition-dependent rather than tied to np=3. The placement and the split complete; the failure is in the multigrid setup of the co-located tail on the placed mesh.
Underworld development team with AI support from Claude Code
Third occurrence, and the clearest: two faults a domain apart in one network at np=2 on a [-0.5, 1.5]^3 base, with the per-region placement of #672. Both regions were already interior to their ranks, nothing was moved, the mesh is balanced (14,339 / 14,332 cells) and the band is genuinely distributed (347 / 345 band cells). The contact solve then fails in PCSetUp_MG with the same signature (New nonzero at (564,564) in MatDiagonalSet under MatGalerkin).
So the defect is not np=3, nor a rank-count: the co-located tail assumes the band's fine cells sit on one rank, and any layout where the placed region spans ranks produces a coarse degree of freedom with no fine image on its owner. That is now the blocking item for a balanced parallel fault network.
Underworld development team with AI support from Claude Code
Diagnosis and partial fix, on PR #672 (fourth commit):
The crash (New nonzero at (i,i) caused a malloc in MatDiagonalSet under MatGalerkin / PCSetUp_MG) is PETSc repairing a zero row of the Galerkin coarse operator with an identity diagonal that was never allocated. The zero row came from the rotated prolongation zeroing the wrong rows: _build_rotated_custom_Pl enumerated this rank's velocity-IS entries and passed the LOCAL block indices to zeroRows, which takes global ones. Every rank but the first zeroed rows belonging to rank 0. Fixed by adding the ownership offset.
The non-convergence that followed (velocity KSP reason -11 at iteration 0, |r| = inf) was the cross_partition="auto" rule: on a band spanning two ranks the co-partitioned transfer between the base and the placed mesh had 3 orphan columns, the cross-partition rebuild 16,791 of 96,009 (43,047 at np=4), and the repair injected nearest fine DOFs into all of them. The rule now keeps whichever transfer has fewer orphans and warns when the rebuild would have been worse. The cross-partition builder itself, which loses 17 to 45 percent of the coarse columns on a pair that is actually co-partitioned, is still defective and not fixed.
Still open: the np=3 answer on the crossing fixture (Cross_2 slip 0.00266 vs 0.00295 serial, 10% low). It no longer crashes; it is a wrong number, present before and after both fixes.
Underworld development team with AI support from Claude Code
Fixed on development: the distributed-band multigrid crash is gone, and the crossing-fixture slips at np 2, 3 and 4 match serial to 0.1 %. ptest_0863 still fails, but because its stored serial references have the Cross_1 and Cross_2 values swapped, not because the answer is wrong.
Probe: runs/2026-11-10-sweep/B/p670/probe_670_671.py on hyperion, with the same build, split, contact solve and net.slips as ptest_0863.
The crash (zeroRows ownership offset). This issue's third occurrence was two faults a domain apart at np 2, with each band on its own rank. It now converges with velocity_pc = custom-FMG, with no New nonzero ... MatDiagonalSet error:
apart np2 band [345, 350] converged True custom-FMG East 0.13729 West 0.13645
apart np4 band [0, 0, 350, 345] converged True custom-FMG East 0.13729 West 0.13655
The ~10 % slip error. Crossing-patches fixture, peak tangential slip per piece:
np 3 is the case this issue reported (Cross_2 0.0027 against 0.00295). Every piece now agrees with serial to under 0.1 % at every rank count, and the velocity block is custom-FMG on every run.
Why ptest_0863 still fails. Its SERIAL holds Cross_1 0.00335 and Cross_2 0.00295, but serial on this build gives Cross_1 0.00291 and Cross_2 0.00337: the two names are swapped. Its SERIAL_TI is swapped the same way (Cross_1 0.15717 and Cross_2 0.13863, against a measured Cross_1 0.1386). I ran it at np 4:
original reference: 2 failed, 1 passed Cross_1: parallel peak 0.0029 vs serial 0.00335
Cross_1: parallel peak 0.1386 vs serial 0.15717 (weak plane)
SERIAL with Cross_1/Cross_2 swapped: split test PASSES; the weak-plane test fails only on its own swapped SERIAL_TI
The weak-plane test's partition-independent check, the ∫v·v integral to 1e-5, passes before the slip asserts, so its solve is the serial one. This is the "Cross_1: parallel peak 0.0029 vs serial 0.00335" failure recorded in #900 and #956, so the 0863 row of #956 is a stale reference rather than a wrong answer.
At np 2, ptest_0863 (the three tests in one process) was killed by the 900 s silence supervisor inside _solve_rotated_iterative. The native frames were still moving, so this is undecided between slow and stuck. My separate np 2 runs of the same fixtures completed.
Underworld development team with AI support from Claude Code
Activity
lmoresi commentedon Sep 2, 2026
Second occurrence, np=4, on a different layout: two faults in one network (split realisation) on a [-0.5, 1.5]^3 base, band gathered onto rank 2 with 12,803 of 28,656 cells. Same signature, on rank 0 this time:
The crossing-patches fixture passes at np=4 with the band on rank 3, so the defect is partition-dependent rather than tied to np=3. The placement and the split complete; the failure is in the multigrid setup of the co-located tail on the placed mesh.
Underworld development team with AI support from Claude Code
Placement and split gather per region: each zone to its own rank, or …
lmoresi commentedon Sep 2, 2026
Third occurrence, and the clearest: two faults a domain apart in one network at np=2 on a [-0.5, 1.5]^3 base, with the per-region placement of #672. Both regions were already interior to their ranks, nothing was moved, the mesh is balanced (14,339 / 14,332 cells) and the band is genuinely distributed (347 / 345 band cells). The contact solve then fails in PCSetUp_MG with the same signature (
New nonzero at (564,564)in MatDiagonalSet under MatGalerkin).So the defect is not np=3, nor a rank-count: the co-located tail assumes the band's fine cells sit on one rank, and any layout where the placed region spans ranks produces a coarse degree of freedom with no fine image on its owner. That is now the blocking item for a balanced parallel fault network.
Underworld development team with AI support from Claude Code
The geometric tail on a distributed band: zero the constrained rows b…
lmoresi commentedon Sep 2, 2026
Diagnosis and partial fix, on PR #672 (fourth commit):
The crash (
New nonzero at (i,i) caused a mallocinMatDiagonalSetunderMatGalerkin/PCSetUp_MG) is PETSc repairing a zero row of the Galerkin coarse operator with an identity diagonal that was never allocated. The zero row came from the rotated prolongation zeroing the wrong rows:_build_rotated_custom_Plenumerated this rank's velocity-IS entries and passed the LOCAL block indices tozeroRows, which takes global ones. Every rank but the first zeroed rows belonging to rank 0. Fixed by adding the ownership offset.The non-convergence that followed (velocity KSP reason -11 at iteration 0, |r| = inf) was the
cross_partition="auto"rule: on a band spanning two ranks the co-partitioned transfer between the base and the placed mesh had 3 orphan columns, the cross-partition rebuild 16,791 of 96,009 (43,047 at np=4), and the repair injected nearest fine DOFs into all of them. The rule now keeps whichever transfer has fewer orphans and warns when the rebuild would have been worse. The cross-partition builder itself, which loses 17 to 45 percent of the coarse columns on a pair that is actually co-partitioned, is still defective and not fixed.Still open: the np=3 answer on the crossing fixture (Cross_2 slip 0.00266 vs 0.00295 serial, 10% low). It no longer crashes; it is a wrong number, present before and after both fixes.
Underworld development team with AI support from Claude Code
Placement gathers the shell the seam rule needs, and nothing when the…
Placement and split gather per region: each zone to its own rank, or …
The geometric tail on a distributed band: zero the constrained rows b…
Fault networks in parallel: the design note, the layout throughput te…
Merge pull request #672 from underworldcode/feature/placement-local-g…
lmoresi commentedon Nov 10, 2026
Fixed on development: the distributed-band multigrid crash is gone, and the crossing-fixture slips at np 2, 3 and 4 match serial to 0.1 %.
ptest_0863still fails, but because its stored serial references have the Cross_1 and Cross_2 values swapped, not because the answer is wrong.Checked on development a6eebb6.
Probe:
runs/2026-11-10-sweep/B/p670/probe_670_671.pyon hyperion, with the same build, split, contact solve andnet.slipsasptest_0863.The crash (zeroRows ownership offset). This issue's third occurrence was two faults a domain apart at np 2, with each band on its own rank. It now converges with
velocity_pc = custom-FMG, with noNew nonzero ... MatDiagonalSeterror:The ~10 % slip error. Crossing-patches fixture, peak tangential slip per piece:
np 3 is the case this issue reported (Cross_2 0.0027 against 0.00295). Every piece now agrees with serial to under 0.1 % at every rank count, and the velocity block is custom-FMG on every run.
Why
ptest_0863still fails. ItsSERIALholds Cross_1 0.00335 and Cross_2 0.00295, but serial on this build gives Cross_1 0.00291 and Cross_2 0.00337: the two names are swapped. ItsSERIAL_TIis swapped the same way (Cross_1 0.15717 and Cross_2 0.13863, against a measured Cross_1 0.1386). I ran it at np 4:The weak-plane test's partition-independent check, the ∫v·v integral to 1e-5, passes before the slip asserts, so its solve is the serial one. This is the "Cross_1: parallel peak 0.0029 vs serial 0.00335" failure recorded in #900 and #956, so the 0863 row of #956 is a stale reference rather than a wrong answer.
At np 2,
ptest_0863(the three tests in one process) was killed by the 900 s silence supervisor inside_solve_rotated_iterative. The native frames were still moving, so this is undecided between slow and stuck. My separate np 2 runs of the same fixtures completed.Underworld development team with AI support from Claude Code