Skip to content

The MMPDE mover reaches its minimum: no stall, and no wasted iterations near it - #1024

Merged
lmoresi merged 11 commits into
developmentfrom
bugfix/mmpde-mover-stall
Nov 12, 2026
Merged

lmoresi merged 11 commits into
developmentfrom
bugfix/mmpde-mover-stall

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 9, 2026

Copy link
Copy Markdown
Member

The MMPDE mover now reaches the minimum of its energy instead of stalling early, and it no longer spends its whole iteration budget once it is near that minimum. Stacked on #1003; merge #959, #982, #988 and #1003 first.

What was wrong

On an annulus with a sharp thermal layer, the default mover stopped at the fifth of 150 outer iterations. Its energy was 9 % above what plain descent reaches, and it moved nodes a quarter as far. Two causes:

  1. A failed conjugate direction was taken for convergence. The line search collapsed and the mover stopped, with no attempt along steepest descent.
  2. The metric made the energy jump. It was interpolated from its nearest nodes (Shepard), so the energy jumped where the nearest set changed, and even steepest descent could not go on.

Also, from a mesh already near its minimum, the mover ran all 150 iterations on moves too small to matter: 185 s for a second move on this annulus.

The change

  • CG restart: a failed conjugate direction restarts along steepest descent. Only a failure there ends the sweep.
  • The metric on a frozen mesh (metric_eval="frozen", now the default): it is a P1 field on a copy of the starting mesh, read with uw.function.evaluate, or global_evaluate in parallel. It is continuous, a function of space, and the same at any rank count. A constant metric, as Mesh.relax gives, skips the field.
  • One metric read per step:
    • A line-search trial is screened with the metric carried from the current centroids to first order.
    • A trial that passes is confirmed with the metric read at its own centroids, which becomes the next step's metric.
    • The gradient takes forward differences.
  • Stagnation exit on by default (stol=3e-4): Louis agreed this default.
  • Analytic normals on rigid walls: radial and plane bounding surfaces give their normals directly, instead of re-projecting them twice per iteration.

Measured

Annulus, cell size 1/8, sharp layer, slip walls, R=5:

First move Second move Area ratio Max displacement Folded
development 4 s, stalled after 7 — 5.4 0.022 0
this PR, np 1 33 s, 72 outers 15 s, 29 outers 11.1 0.079 0
this PR, np 4 19 s 8.7 s 9.7 0.072 0

Before the per-step read and the stagnation exit, the frozen field alone took 73 s and 185 s for the two moves. The np 1 and np 4 energies agree to 0.04 % (frozen field, measured before the per-step read was added).

Tests

Notes

  • Results of earlier mover runs change: the mesh is more graded, because the mover no longer stops early.
  • The first move is still about 1 s per iteration, mostly point location inside evaluate. Reusing cell location between steps is the next lever. dmfield_evaluate was tried and hit locate failures.

Checklist (UW3 Style Charter)

  • Read the Style Charter and followed it over the surrounding code
  • No drive-by refactors, renames or cleanups
  • Bug fixes ship the regression test, written first, with level_* and tier_* markers
  • No hedging names and no commented-out code
  • Every exception swallow states its sanctioned failure mode in a comment
  • New data access uses .array / mesh.X.coords
  • Parallel safety checked at np 4
  • No dependency changes
  • AI-assisted work carries the attribution line

Underworld development team with AI support from Claude Code

…oes not burn its budget

On an annulus with a sharp thermal layer the default mover stopped at the fifth of 150
outer iterations, its energy 9 % above what plain descent reaches. Two causes. A failed
conjugate direction was taken for convergence; it now restarts along steepest descent.
The metric, interpolated from its nearest nodes, made the energy jump where those nodes
change; it is now a P1 field on a copy of the starting mesh, read with evaluate
(global_evaluate in parallel), so it is continuous, a function of space, and the same at
any rank count.

Cost: the metric is read once per step and carried to each line-search trial to first
order with that step's gradient, which is what the descent direction assumes; the
gradient takes forward differences. A stagnation exit is on by default (stol=3e-4):
near its minimum the mover otherwise spent all 150 iterations on moves too small to
matter. Rigid bounding surfaces give their normal analytically instead of re-projecting
it twice per iteration. A first move on this annulus takes 33 s and a second 15 s,
against 73 s and 185 s with the frozen field alone.

Underworld development team with AI support from Claude Code
…onfirmed on the metric read there

The first-order carry can overshoot where the metric changes fast, and the SPD floor then
lets the line search accept a step the true energy rejects. The read that confirms it is
the next step's metric, so it adds no read, and the reported and windowed energies are the
true energy again. A constant metric, as Mesh.relax passes, skips the frozen field. The
test asserts how far the energy falls, not one descent against another.

Underworld development team with AI support from Claude Code
@lmoresi

lmoresi commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

Adversarial review

One independent review, by reading code, of the first commit. The second commit answers it and was not reviewed again.

Fixed

  1. The first-order carried metric could overshoot where the metric changes fast. The SPD floor then let the line search accept a step the true energy rejects (with θ = 0.5, as node_redistribution passes). A trial now passes the carried screen and is then confirmed on the metric read at its own centroids. That read is the next step's metric, so it adds no read. Same mesh and timings on the annulus: no trial was rejected there.
  2. The reported and windowed energies had become values under the carried metric. They are the true energy again, through (1).
  3. The test asserted one descent against another (Charter §8) at level_1. It now asserts the energy drop, at level_2.
  4. A constant metric, as Mesh.relax passes, built a frozen field and ran global_evaluate for nothing. It skips the field now.

Left, noted

  • Each mover call builds one mesh and variable, so Mesh.mesh_instances and three PETSc options per mesh accumulate in a long time loop. The meshes themselves are freed, since the registry is weak.
  • The DM clone's labels: coordinates are independent; label sharing between clone and original was not checked in PETSc's source. The mover suites pass.
  • The rank-local early return for a rank with no cells (pre-existing TODO(BUG)) now also skips the frozen-mesh construction.

Attacks that found nothing

  • Collectives: scale, _beta_cg, the restart and the stagnation break all come from allreduced values.
  • Frame: coords_nd and DM coordinates are model units, which is what evaluate takes for a plain array.
  • Gradient consistency: the centroid split matches the mean-of-vertices shift.
  • stol with small n_outer: the window never fires for 3 or fewer.
  • normals: callers are sign-insensitive.

Underworld development team with AI support from Claude Code

@lmoresi

lmoresi commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Review of the final commit only (pre-rebase)

This round covers only the final commit, which answered earlier review rounds and had not itself been reviewed. Each PR's own tests run again on its rebased head once H2 has rebased the stack onto development (#959 is merged). That record will follow as a separate comment. Paths under runs/ are on hyperion.


#1024, final commit 06fea90: adversarial review

Commit: 06fea90 "Review of the mover change: a trial passed on the carried metric is confirmed on the metric read there". Parent d6423fd. Base: #1003 head 0b14c68 (wt-s1003).

Verdict: approve once a test guards the change. The confirmation does what it says. The parent accepts line-search steps whose true energy rises, and the final accepts none. It adds no metric reads in the runs below, costs no wall time, and does not stall. The constant-metric skip returns the same mesh about 6× faster. Neither change is caught by any test: test_0765 and five other mover files pass with either change undone.

Method

  • Tests were run from git archive copies, with PYTHONDONTWRITEBYTECODE=1 and -p no:cacheprovider. MPI ran under mpi_supervisor.py.
  • The installed mmpde.py of wt-s1024 matches 06fea90.
  • Variants were compiled in-process into the installed mmpde module and rebound in smoothing.api and smoothing (plugins/mut1024.py). Nothing in the worktree was written. The variants are:
    • parent: mmpde.py at d6423fd.
    • no_confirm: the final, accepting on the carried screen.
    • no_constskip: the final, with the free_symbols guard removed.
  • Every variant counts metric reads (_eval_M calls) and confirmation rejects.
  • With TRUECHECK=1, each accepted step's energy is recomputed under the metric read at the accepted centroids and compared with the step's starting energy. Those reads are not counted.
  • no_confirm reproduces the parent's energies to all printed digits in every case, so it isolates the confirmation.

What it answers

From the PR's first review:

  1. The carried metric can let the line search accept a step the true energy rejects. Answered, measured below.
  2. The reported and windowed energies were carried values. Answered. Inew is now _energy(trial, M_read).
  3. The test asserted one descent against another. Answered. It asserts a drop.
  4. A constant metric built a frozen field. Answered. See the relax rows below.

Measured (probes/p_mover.py)

Annulus, layer tanh((r-0.9)/w), metric_density_from_gradient(..., "front-following"), slip walls, momentum=0. "Bad accepts" are accepted steps whose true energy did not fall.

case variant outers final I drop wall reads rejects bad accepts (worst rise)
A: w=.03, R=5, h=1/16, sf=.2, cg (test_0765), move 1 final 38 3.704125 13.07 % 8.2 s 154 0 0/38
parent 38 3.704052 13.07 % 8.2 s 153 — 0/38
A, move 2 final 16 4.661350 1.43 % 4.5 s 75 0 0/16
parent 16 4.661323 1.43 % 4.5 s 77 — 0/16
A, np 2, move 1 / move 2 final 34 / 15 3.674181 / 4.638191 7.7 / 4.5 s 138 / 77 0 0
parent 34 / 15 3.674038 / 4.638099 7.5 / 4.6 s 137 / 81 — 0
B: w=.005, R=20, h=1/16, sf=.5, cg final 116 2.812879 48.92 % 26.5 s 513 2 0/116
parent 126 2.812900 48.92 % 28.9 s 585 — 2/126 (1.9e-5)
C: w=.03, R=5, h=1/8, sf=.2, cg (the PR's annulus), move 1 final 29 3.732659 19.98 % 4.0 s 120 2 0/29
parent 29 3.734504 19.94 % 4.7 s 137 — 2/29 (2.5e-5)
C, np 2, move 1 final 26 3.743263 20.08 % 5.4 s 107 1 0/26
parent 23 3.744261 20.05 % 4.7 s 93 — 1/23 (4.9e-6)
C, metric_eval="rbf" final 37 3.715967 1.3 s 165 9 0/37
parent 35 3.722441 1.2 s 149 — 1/35 (2.3e-4)
C, accel="none" final 24 3.747652 19.66 % 3.2 s 98 0 0/24
parent 24 3.747334 19.66 % 3.2 s 97 — 0/24

Cost.

  • The confirmation's read replaces the next step's read at the centroids. Reads per outer iteration are equal or lower: 4.05 against 4.03 (A1), 4.42 against 4.64 (B), 4.14 against 4.72 (C1). The parent re-reads after a CG restart; the final reuses the metric it already has.
  • Each confirmation reject costs one read: 0 to 2 per move on the frozen metric, 9 on rbf.
  • Wall time is the same or lower.

Can it reject a good step?

  • A trial must now pass both the carried screen and the true check, so it is strictly more conservative than the parent.
  • It can still reject a step the true energy would accept, where the carried screen fails first. The parent shares that behaviour.

Can it stall? We saw no stall in any run.

  • Final energies match the parent's or are lower: by 5e-4 relative in C, and 1.7e-3 on rbf.
  • Stol exits fire as on the parent, except rbf case C, where the final stopped on its other criteria after 37 outers.
  • On rbf (Shepard, discontinuous), the 9 rejects did not prevent descent.

The rises the confirmation removes are small (≤ 2.5e-5 relative on the frozen metric, 2.3e-4 on rbf), but they are real violations of the line search's monotone contract.

Constant metric (probes/p_relax.py). Mesh.relax() on a once-adapted UnstructuredSimplexBox(cellSize=0.2, refinement=1):

wall, np 1 / np 2 meshes built
final 0.15 / 0.10 s 0
no_constskip 0.84 / 1.08 s 1
parent 0.85 / 0.90 s 1

The coordinates agree to 1e-13 at np 1 and on both ranks at np 2. Across the six mover test files the skip saves 37 s: 74 s on the final against 111 s for no_constskip and 109 s for the parent.

The commit's own test

tests/test_0765_mmpde_descent_does_not_stall.py:

build serial np 2
final (s1024) pass, 15 s (drop 13.07 %) rank 0 pass, rank 1 IndexError
parent d6423fd (emulated) pass rank 0 pass, rank 1 IndexError
no_confirm pass —
#1003 build (s1003) fail: "energy fell 0.5 % in 3 outer iterations" fail on both ranks: rank 0 "3.2 % in 6", rank 1 IndexError

The test guards d6423fd's no-stall fix, against the #1003 build, with a wide margin (13 % against a bound of 8 % against 0.5 %). It does not guard this commit: it passes on the parent.

Mutants against the mover suite (test_0751, 0752, 0764, 0765, 0766, 0845; serial):

variant result
final 26 passed
no_confirm 26 passed
no_constskip 26 passed
parent 26 passed

Findings

F1. Medium: no test fails without this commit.

  • Undoing the confirmation, or the constant-metric skip, passes every mover test.
  • Two suggested tests:
    • Case C (h=1/8) with a true-energy monotonicity check. The parent accepts 2 rising steps there, and the final none.
    • Mesh.relax() asserting Mesh.mesh_instances is unchanged. It goes from 0 to 1 built under no_constskip.

F2. Low: test_0765 cannot run under MPI.

  • Energies are parsed from uw.pprint output, which appears only on rank 0, so rank 1 fails with IndexError at line 36.
  • This is the same on the parent. The file has no MPI marker; it is a fault only if mpirun pytest ever collects it.
  • Fix: broadcast the trace from rank 0, or mark the file serial-only.

Notes:

  • [read] The reuse of _M_next holds only if coords is unchanged between the line search and the next step. coords = accepted is followed by mesh._deform_mesh(coords) and by boundary_slip(reference_coords=coords) at the top of the next step, and neither rewrites coords [read]. The final's energies agree with the parent's to ≤ 5e-4 relative, consistent with that.
  • [read] Parallel safety holds. The screen and the confirmation predicates come from _energy, which is a global sum, so every rank enters the collective global_evaluate inside _eval_M together. The np 2 runs completed.
  • Pre-existing, unchanged:
    • The rank-local early return for a rank with no cells (TODO(BUG)).
    • Step 1 reads the metric at the centroids twice (prevI and the step).
  • The refinement ≥ 1 defect is not exercised. No probe here moved a refined mesh and then solved on it.

Merge conditions

  • F1: a test that fails with the confirmation undone. A test for the constant-metric skip is a should-fix.
  • F2: mark test_0765 serial-only, or make it rank-safe. This is a should-fix.

What we could not test

  • Only one geometry and one metric family were run. We did not run 3D (tetrahedra), a box, accel="heavyball" or "hb-restart", or θ = 0.5 called directly through _mmpde_mover. node_redistribution sets its own θ, and we did not check which one it passes [read].
  • Parallel was run at np 2 only, not np 4.
  • The commit's mover suite was not re-run. The PR's full set of 118 mover tests, and their parallel files at np 4, will be re-run after the rebase.
  • We did not find a case where the confirmation rejects every trial while descent is still available. That is reasoned, not shown: the carried and true energies agree to second order in the step.

Underworld development team with AI support from Claude Code

…ic skip

Only rank 0 prints the mover's trace, so broadcast it before parsing (H1
review F2, IndexError on rank 1 at np 2). Add a test that a constant metric,
as Mesh.relax passes, builds no frozen metric field while a spatial one does;
it fails with the skip in 06fea90 undone (H1 review F1, first half).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…confirmed read

_mmpde_mover returns the energy of the starting mesh and of each accepted
step. The new test checks the last one against the true energy a second
call reads on the same mesh; with the line search's confirmation in
06fea90 undone they differ by 0.2 % (H1 review F1, second half).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every other exit returns the list (H1 review, low).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lmoresi

lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

#1024 on its updated head d04ac6b: tests after the development merge

Verdict: the merge is clean and the PR's diff is unchanged. The mover suite and its parallel files pass at np 1, 2 and 4. test_0765 still drops the energy 13.07 % and still fails on rank 1 at np 2 (known, F2). The one new failure, test_0785, comes from #982 and #1003 below it. F1 of the 06fea90 round (no test guards that commit) is still open.

Head d04ac6b, branch bugfix/mmpde-mover-stall, base bugfix/mesh-move-units (#1003, 84cd176). Build: wt-s1024b. The reviewed commit was 06fea90 (runs/2026-11-10-stack/r1024/1024-final-review.md).

The method is as in 982-rebased-tests.md:

The merge

d04ac6b merges 06fea90 (the reviewed commit) with 84cd176 (#1003's updated head).

  • git show --cc d04ac6bf is empty. Re-merging the parents with git merge-tree --write-tree gives exactly the commit's tree (b203a0f6), so the merge was automatic and conflict-free.
  • The PR's own diff is unchanged. git diff 84cd1763 d04ac6bf is the same, line for line, as git diff 0b14c68b 06fea901, ignoring hunk offsets and blob ids.
  • The files are bounding_surface.py, mmpde.py and test_0765, the same as gh pr view 1024 --json files.

Tests

Tests np Result
test_0765_mmpde_descent_does_not_stall.py (own) 1 passed. The energy drop is 13.07 % in 38 outer iterations (p0765_np1.log), as at 06fea90
the same 2 rank 0 passed, rank 1 IndexError at line 36: known F2, not rank-safe
Mover suite: test_0750, 0751, 0752, 0762 (fault metric), 0764, 0765, 0766, 0768, 0770, 0836, 0845, 0850, 0855 (both files); every serial file that calls the mover, relax or follow_metric (logs/mover_files.txt) 1 123 passed (4 min 35 s)
Parallel mover files: test_0766_..._parallel.py, test_0855_mesh_smoothing_parallel.py 2 7 passed per rank
ptest_0845_relax_pinned_band_parallel.py (pytest) 2 3 passed per rank
Parallel mover files, as above 4 7 passed per rank
ptest_0845_relax_pinned_band_parallel.py 4 3 passed per rank
Development's new and modified serial tests (18 files), -m "not slow" 1 180 passed, 1 skipped (14 min)
test_1064_constrained_spherical_shell_response.py (development, slow, level 3) 1 not completed: stopped by us after about 70 min on its first test (see below)
Development's new and modified parallel tests (12 files) 2 54 passed, 7 skipped, 1 failed: test_0785::test_deform_with_units_keeps_a_constant_field
the same 4 56 passed, 5 skipped, the same 1 failed
Development's modified ptests: ptest_001a, ptest_003, ptest_jit_cache (scripts); ptest_0864_split_checkpoint (pytest) 2 all pass (0864: 3 passed per rank)
ptest_0851_fault_network_3d_parallel.py (pytest) 2 1 failed; development fails the same way

The PR's test still guards its change. On the #1003 build (wt-s1003b), test_0765 fails with "energy fell 0.5 % in 3 outer iterations", as in the earlier round.

Failures

test_0765 at np 2, rank 1, IndexError.

  • This is the known F2 of the 06fea90 round: the energies are parsed from uw.pprint output, which only rank 0 prints.
  • It is unchanged. It is not a new failure.

test_0785::test_deform_with_units_keeps_a_constant_field (np 2 and np 4). This is new against development, but it does not come from #1024.

ptest_0851_fault_network_3d_parallel.py::test_network_3d_split_solve_np2 (np 2): pre-existing.

test_1064 was not completed.

  • On this head, its first test had run for about 70 minutes on one core when we stopped it. We killed our own pytest by its exact PID; the log is devnew1024_np1_killed_at_1064.log.
  • It is a slow-marked, level 3, tier C spherical-shell Stokes benchmark. Development only edited it, with 4 lines added and 8 removed. No file in the stack touches the Stokes or constrained solvers.
  • We did not run it on development, so we cannot say whether it is that slow there too.
  • The rest of development's serial tests were run again with -m "not slow" and pass.

Earlier finding still open (06fea90 round, F1). No test fails with the confirmation, or the constant-metric skip, undone. The diff is unchanged, so neither of the suggested tests has been added.

np 4 runs

These were queued in queue_np4.sh and run one at a time once 4 cores were allowed:

  • the parallel mover files: 7 passed per rank (np4_mover1024.log);
  • ptest_0845: 3 passed per rank (np4_ptest0845_1024.log);
  • development's new parallel tests: 56 passed, 5 skipped, and the test_0785 failure (np4_devnew1024.log).

Underworld development team with AI support from Claude Code

@lmoresi

lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Fixes check on the stack: #982 670b523, #988 dbfe47e, #1003 946646b, #1024 cac06a0

This checks H2's fixes for the findings in 982-, 988-, 1003- and 1024-rebased-tests.md. At most 6 cores were used, with np 4 jobs one at a time. Logs are logs/fx_*.log, and the lanes are logs/fx_laneA.sh (np 4) and logs/fx_laneB.sh (np 2 and serial).

Verdicts

Method

  • Tests were run from git archive <head> tests src scripts docs copies in logs/tests-<head>/, with PYTHONDONTWRITEBYTECODE=1 and -p no:cacheprovider. MPI ran under mpi_supervisor.py --silence 600 (logs/run_t.sh).
  • Builds.
    • wt-s982b (982d709) and wt-s988b (c4d31f9) serve 670b523 and dbfe47e: git diff 982d7094 670b523f -- src and git diff c4d31f9d dbfe47e6 -- src are both empty.
    • wt-s1003c is at 946646b and wt-s1024c at cac06a0, both with clean trees. Their installed underworld3 matches src byte for byte (148 files; only tests/test_adaptivity_metrics.py is not installed).
    • The hang check used the old wt-s1003b (84cd176) with 946646b's tests.
  • Undoing the constant-metric skip. This used logs/plugins/undo_constskip.py, a pytest plugin. It reads the installed mmpde.py, replaces the elif metric_eval == "frozen" and any(...free_symbols...) guard with elif metric_eval == "frozen":, compiles the result into the module, and rebinds _mmpde_mover in smoothing.api and smoothing. No file in any worktree was written. With UNDO=0 the same plugin loads and changes nothing, as a control. mmpde.py at cac06a0 is the same as at 06fea90.

Results

Claim Tests Build / tests from np Result
1 test_0785 test_deform_with_units_keeps_a_constant_field wt-s982b / 670b523 2, 4 passed on every rank
1 the same wt-s988b / dbfe47e 2, 4 passed on every rank
2 the same (1003 version: 0.99 * mesh.X.coords keeps 0.5 with no limiter; the plain metre array is refused) wt-s1003c / 946646b 1, 2, 4 passed (np 1 in fx_own1003_np1)
2 the same wt-s1024c / cac06a0 1, 2, 4 passed
3 test_0770 parallel test_deform_returns_on_a_rank_with_no_vertices wt-s1003c / 946646b 2 passed on both ranks
3 the same wt-s1003c / 946646b 4 passed on 4 ranks
3 the same wt-s1003b / 946646b 2 hangs: supervisor reports "stuck", rank 1 in _model_coordinates_from(), exit 124
3 the same wt-s1003b / 946646b 4 hangs: rank 3 in _model_coordinates_from(), exit 124
3 F1 probe (StructuredQuadBox(elementRes=(1, 1)), counts [0, 0, 0, 4]) wt-s1003c 4 every rank returns, exit 0 (it hung on wt-s1003b in the last round)
4 test_0765, both tests wt-s1024c / cac06a0 1 2 passed
4 the same wt-s1024c / cac06a0 2 2 passed on both ranks
5 test_a_constant_metric_builds_no_frozen_field wt-s1024c, skip undone (UNDO=1) 1 failed: assert 'M_frozen' not in ['M_frozen']
5 the same wt-s1024c, plugin control (UNDO=0) 1 passed
7 #982 own: test_0768, test_0780, test_0785 wt-s982b / 670b523 1 19 passed, 8 skipped (the mpi cases of test_0785)
7 #982 own: test_0768 parallel, test_0785 the same 2 13 passed, 1 skipped per rank
7 #988 own: test_0769, test_0785 wt-s988b / dbfe47e 1 11 passed, 8 skipped
7 #988 own: test_0769 parallel, test_0785 the same 2 13 passed, 1 skipped per rank
7 #1003 own: test_0770, test_0785 wt-s1003c / 946646b 1 15 passed, 8 skipped
7 #1003 own: test_0770 (both files), test_0785 the same 2 24 passed, 1 skipped per rank
7 #1003 own: test_0770 (both files) the same 4 12 passed per rank
7 #1024 own: test_0765, test_0785 wt-s1024c / cac06a0 1 7 passed, 8 skipped
7 Mover suite (14 serial files, logs/mover_files.txt) wt-s1024c / cac06a0 1 124 passed (one more than before: the new test_0765 case)
7 Parallel mover files: test_0766 parallel, test_0855 smoothing parallel, ptest_0845 the same 2 10 passed per rank

Reading the diffs

Merges

Still open

Housekeeping

  • At the start we ran one git fetch origin in underworld3. It updated only the remote-tracking refs; no branch, tree or object of ours was changed.
  • Nothing else was written outside runs/2026-11-11-stack/.
  • None of our processes are still running. The two hung runs on wt-s1003b were ended by the supervisor (exit 124), and nothing was left behind.

Underworld development team with AI support from Claude Code

@lmoresi

lmoresi commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

The stack after merging development 5ce73fd: re-test

Heads and builds:

PR Head Build
#982 fe37020 wt-s982d
#988 a10b036 wt-s988d
#1003 f540b18 wt-s1003d
#1024 75f2c86 wt-s1024d
development 5ce73fd wt-dev5ce

At most 6 cores were used, and np 4 jobs ran one at a time. Logs are logs/m5_*.log, and the lanes are logs/m5_lane{A,B,C}.sh.

Verdicts

Findings: none. No test fails on the stack that passes on development.

Method

  • Tests were run from git archive <head> tests src scripts docs copies in logs/tests-<head>/, with PYTHONDONTWRITEBYTECODE=1 and -p no:cacheprovider. MPI ran under mpi_supervisor.py --silence 600 (logs/run_t.sh).
  • All five builds are at their heads with clean trees. Each installed underworld3 matches its src byte for byte (148 files; only tests/test_adaptivity_metrics.py is not installed).
  • Re-merges. We ran git merge-tree --write-tree with GIT_OBJECT_DIRECTORY set to a scratch directory and the repository's objects as an alternate. So nothing was written to the repository, and the scratch directory was deleted afterwards.
  • No git fetch was run.

Merges

Merge Parents git show --cc Re-merge tree vs commit tree Conflicts
fe37020 (#982) 670b523, 5ce73fd empty 36edfb64 = 36edfb64 0
a10b036 (#988) dbfe47e, fe37020 empty 965379c6 = 965379c6 0
f540b18 (#1003) 946646b, a10b036 empty d3e349bb = d3e349bb 0
75f2c86 (#1024) cac06a0, f540b18 empty 615271c4 = 615271c4 0

Tests

Tests Head / build np Result
#982 own: test_0768, test_0780, test_0785 fe37020 / s982d 1 19 passed, 8 skipped (the mpi cases of test_0785)
#982 own: test_0768 parallel, test_0785 the same 2 13 passed, 1 skipped per rank
the same the same 4 13 passed, 1 skipped per rank
#988 own: test_0769, test_0785 a10b036 / s988d 1 11 passed, 8 skipped
#988 own: test_0769 parallel, test_0785 the same 2 13 passed, 1 skipped per rank
the same the same 4 13 passed, 1 skipped per rank
#1003 own: test_0770, test_0785 f540b18 / s1003d 1 15 passed, 8 skipped
#1003 own: test_0770 (both files, with test_deform_returns_on_a_rank_with_no_vertices), test_0785 the same 2 24 passed, 1 skipped per rank; the empty-rank test passes on both ranks
the same the same 4 24 passed, 1 skipped per rank; the empty-rank test passes on all 4 ranks
#1024 own: test_0765 (reaches_its_minimum, a_constant_metric_builds_no_frozen_field), test_0785 75f2c86 / s1024d 1 7 passed, 8 skipped
the same the same 2 14 passed, 1 skipped per rank; both test_0765 cases pass on both ranks
the same the same 4 14 passed, 1 skipped per rank; both test_0765 cases pass on all 4 ranks
Remap/deform neighbours (52 files, logs/remap_files.txt) fe37020 / s982d 1 605 passed, 9 skipped (601 before; development added tests to these files)
Units neighbours (100 files, logs/units_files.txt) f540b18 / s1003d 1 1037 passed, 15 skipped, 12 xfailed
Mover suite: the 14 earlier files plus development's test_1151 (logs/mover5_files.txt) 75f2c86 / s1024d 1 126 passed
Parallel mover files: test_0766, test_0855 smoothing, ptest_0845, and development's test_1152 FAC zone after a mover the same 2 12 passed per rank
Development's new and modified serial tests, 526edb9..5ce73fd (18 files, logs/dev5_serial.txt) 75f2c86 / s1024d 1 109 passed, 10 skipped
the same 5ce73fd / dev5ce 1 109 passed, 10 skipped: the same tests pass and skip
Development's new and modified parallel tests (6 files, logs/dev5_par.txt) 75f2c86 / s1024d 2 31 passed per rank
the same 5ce73fd / dev5ce 2 31 passed per rank: the same tests

Notes on the table:

  • Development's serial list includes test_0690_refined_checkpoint_cross_np.py, whose inner pytest reports "2 passed" on both builds.
  • The per-test PASSED and SKIPPED lists are the same on the stack and on development. In the parallel comparison the only difference is one PASSED line with an MPI banner interleaved into it.
  • Development's earlier new tests (7bfda64..526edb9) were not run again. They passed in the earlier rounds, apart from ptest_0851, which fails on development too.

Findings

None.

Still open from earlier rounds, and not changed by this merge:

Housekeeping

  • Nothing was written outside runs/2026-11-11-stack/ apart from the activate scripts' caches and the deleted scratch object directory.
  • None of our processes are still running.

Underworld development team with AI support from Claude Code

gthyagi pushed a commit to gthyagi/underworld3 that referenced this pull request Nov 13, 2026
…rldcode#1101)

When the fine level moves far from coarse levels that did not move with
it, two coarse unknowns can be left whose prolongation columns each have
one entry, on the same fine row. Their Galerkin rows are proportional and
the coarse operator is singular; in test_1152 (a mover after underworldcode#1024) SOR's
inode block met a zero pivot on 4 of 8 1e-13 coordinate perturbations.

restrict_unreached and rotated_split_transfers now find such groups
(collectively, columns with at most 4 fine images), keep the largest-weight
column (ties to the lowest global column), drop the others, and fold each
dropped unknown's row of the level below into its kept twin's, scaled by
the signed weight ratio. The composite transfer is unchanged, so constants
still reach the shared row at full weight. The repair warns; more columns
than rows on a multi-row support is refused on every rank; with no such
group the transfers are returned untouched.

Test: the configuration built directly, the shared fine row on rank 0 and
the columns on the last rank, at np 1, 2 and 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants