Repository navigation
After a mesh move, solves see the remapped field; a move is decided over all ranks - #959
Conversation
…ver all ranks remesh_with_field_transfer writes the remapped values through a plain view of var.data, which does not set _stale_lvec, and the remap's own evaluations have just refreshed the mesh vector from the values before the write. Kernels and integrals read that vector, so they saw the old field on the moved nodes, since the remesh redesign of 2026-05-28. The move test was per rank: a rank whose own nodes stayed put returned before the collective remap while the others entered it, and hung. It is now agreed over all ranks, which also lets the new flag be set on every rank. Underworld development team with AI support from Claude Code
|
Correction to the table in the description: those runs were on Adversarial reviewAn independent reviewer read an earlier version of this branch (the flag only). This was by reading code; it ran nothing. The commit here was squashed after the review, and it adds the fixes below. Fixed here
Not fixed here, filed separately Attacks that found nothing
Open issues in this territory Not re-reviewed since these fixes: the post-review change is seven lines of source plus tests. Underworld development team with AI support from Claude Code |
Adversarial review of #959 at add5ea7We reviewed Must fix
Should fix
Notes
Issue verdicts
Not checked, and what the Linux server should runUse a build of add5ea7 and
Underworld development team with AI support from Claude Code |
…mesh version, follow_metric agrees - remap_var_set no longer skips global_evaluate on a rank with no DOFs. - remesh_with_field_transfer bumps _mesh_version, so a swarm proxy follows every mover, not only Mesh.deform. - follow_metric decides whether the mesh moved over all ranks. - The tests are tier B and read values rather than the flag, and the non-moving rank fixture moves only vertices no other rank holds. Underworld development team with AI support from Claude Code
Neither a sector front nor a local bump makes ranks disagree, so the change had no test that fails without it, and an empty rank meets the mover's own early return first. Recorded on #960. Underworld development team with AI support from Claude Code
|
Second review's findings, all at 9fb2d91, with the server runs it asked for (Linux, MPI). Must fix
Should fix
Notes
Runs
I ran S2 and the other mutants by editing the installed copies, and restored them from git afterwards. Underworld development team with AI support from Claude Code |
Adversarial review of #959 at 9fb2d91 (round 2)We reviewed the two new commits, e3337ff and 9fb2d91, against add5ea7, and went back over each round-1 item. The branch was rebuilt in its own worktree; All runs are serial, on macOS. Mutants are edits to the installed
Where a row says "development", we installed development's own Must fix
Should fix
Notes
Issue verdicts
Not checked, and what the Linux server should runUse a build of 9fb2d91 with
Underworld development team with AI support from Claude Code |
…on; tests that read the stale value - The _mesh_version bump comes back out: it made every mover invalidate snapshots. The swarm proxy problem it addressed goes to its own issue. A save, move, restore test holds the line. - test_0057 carries T, because it is about point location and asserted a property only the stale vector gave a remapped field. - test_1070 measures the constraint's flux on the geometry its solve ran on. - The no-cells parallel test uses a linear T and asserts a rank has no cells. Underworld development team with AI support from Claude Code
|
Round 2 answered at a41f225. Must fix
Should fix: the no-cells test uses a linear T and asserts a rank has no cells. With the flag removed, all three parallel tests fail at np 2. Also: the non-moving-rank test now asserts the other ranks' coordinates are unchanged. The description says this leaves #960 open. #296 is still live, as you say, and #966 points at it. Runs
My own miss to note: my earlier "mover and free-surface suites" run didn't include Underworld development team with AI support from Claude Code |
Adversarial review of #959 at a41f225 (round 3)We reviewed a41f225 against 9fb2d91 and checked each round-2 item. The branch was rebuilt in its own worktree. All runs are serial, on macOS. Mutants are edits to the installed
Must fixNone. Should fix
Notes
Issue verdicts
Not checked, and what the Linux server should run
Underworld development team with AI support from Claude Code |
|
CI at a41f225: shards 1, 2 and 3 pass. Shard 4 fails because Underworld development team with AI support from Claude Code |
Underworld development team with AI support from Claude Code
There the strong constraint meets the datum to round-off, so the bound can be 1e-10. Read after the deform, 1.7e-2 was the velocity remapped onto the moved surface. Underworld development team with AI support from Claude Code
|
Round 3's should-fix is done at 98c0ab8. Underworld development team with AI support from Claude Code |
Underworld development team with AI support from Claude Code
Underworld development team with AI support from Claude Code
|
Wider than an empty rank: a rank whose nodes don't move also hangs. Also on both builds: an empty rank at np 3 gives exit 142, scalar and MATRIX ( From the third review of the #909 branch; probes on hyperion in Underworld development team with AI support from Claude Code |
|
np 3 checked, passes, at 7bfda64. This answers the review of #909, which found a rank whose nodes don't move hanging at np 3 on development. Probe: an annulus with cell size 1/8 and a P2 T. Only one rank moves, and only vertices no other rank holds, by 0.1 %. The other ranks' coordinates are bitwise unchanged. Natural partition, cells per rank 135 / 141 / 130.
I did not override the partitioner, so a "forced partition" in the strict sense was not run. Each rank was forced to be the only mover instead. Underworld development team with AI support from Claude Code |
…apshot restorable H1's review of bundle A, round 2. d22d225 moved the _mesh_version bump from mesh.deform into remesh_with_field_transfer so that movers would kill the FAC patch. Snapshot restore refuses a moved _mesh_version, so a snapshot taken before smoothing or an MMPDE step became unrestorable, which development allows (the case #966 records for #959). _mesh_version is back to development's meaning. A new Mesh._move_version counts committed moves: remesh_with_field_transfer bumps it (mesh.deform and every mover), and snapshot restore bumps it when it moved the nodes. _deform_mesh does not, so the trial moves inside ephemeral_coords do not count. The kill keys on it (solver._fac_patch_move_version). This is the dedicated counter #966 proposes; only the patch reads it here. New test: a snapshot taken before a mover restores (fails if the helper bumps _mesh_version). Serial: 1057 passed over the bundle files, every mover and deform test, and every snapshot test. Underworld development team with AI support from Claude Code
The previous commit set T on the deformed mesh. #959 (open, H2), which has the same stale-vector fix, makes the test carry T instead (remesh_policy="carry"), so the field along the crest is known; this takes its hunk verbatim, so the two branches agree on the file. Underworld development team with AI support from Claude Code
|
Empty rank at np 3 passes at 7bfda64. The stale-mesh-vector line will also arrive with #1036 (the hub's call). Once #1036 merges I'll merge development in here and drop the duplicate. Underworld development team with AI support from Claude Code |
H1's review of e57ad72. - Merge condition: test_1152's bounds equalled the solve tolerance, so kept and fresh differed by convergence noise alone (1.46e-6 velocity, 1.19e-5 slip at np 2). It now solves at 1e-8 and bounds velocity at 100x and pressure and slip at 1000x the tolerance; hyperion measured kept against fresh at ~4e-9 there, and a stale patch costs only iterations, which the iteration guard catches. - L2: test_1149 tests _topology_signature itself (the same after a move and a new field, different on other cells); a constant signature fails. - L3: after a move on a split level the zone patch's gate verdict is None (the structural rows are dropped, not found again and declined); keeping them fails. - M1: the stale mark's comment said every rank reaches it; only a rank that moved does (#960). #959's all-rank move decision carries the same mark and replaces this one at its merge. Serial: test_1149 and test_1152, 15 passed; test_1151, 2 passed. Underworld development team with AI support from Claude Code
#959 carries the same stale-mesh-vector mark, after an all-rank move decision; its copy is kept and this branch's is dropped, which also makes the _move_version bump collective (H1's M1). test_a_mover_leaves_a_snapshot_ restorable is dropped as a duplicate of #959's test_0766 snapshot test. test_1151 stays: it covers mesh.deform and a Stokes assembly against a solver built after the move, which test_0766 (a mover, read through an integral) does not. Underworld development team with AI support from Claude Code
After a mesh move, a solve used the field values from before the move, on the moved nodes. This fixes that, and a hang when some ranks' nodes don't move.
The bug
remesh_with_field_transferwrites the remapped values throughnp.asarray(var.data)[...]. That is a plain view, so the callback that setsmesh._stale_lvecdoesn't fire. The remap's ownglobal_evaluatecalls have just refreshed the mesh vector from the old values and cleared the flag. SoT.arrayholds the remapped field, while kernels and integrals readmesh.lvec, which holds the old one.This has been present since the remesh redesign of 2026-05-28 (
c52201b8). It affects the first solve after each move whose kernels read a REMAP variable; any solve that writes its unknown raises the flag, so later readers see fresh values. In a loop that moves every step and solves Stokes first, that is every Stokes solve. A variable under semi-Lagrangian ALE isCARRYby design, so its own values are not remapped, and this doesn't change that.Measured
Annulus, radii 0.5-1, cell size 1/8, 3 levels, a sharp thermal layer, slip mover with
R=5, rotated free slip withnormal=unit_e_0, custom FMG. v_rms is 1.62238 before any move.That first solve after a move was 3% high at np 1 and 4% high at np 4. Rewriting T with its own values gave the same 1.62263 at np 1, which is how the cause was found. Velocity iterations stayed at 4 throughout.
Earlier moving-mesh results with T-dependent forcing or viscosity may carry this error in the first solve after each move. I haven't re-measured any of them.
Also fixed
global_evaluateinremap_var_set. The job hung at np 2 and np 4 on a 1 x 2 box, and completes with the fix, with T identical to serial.Tests that relied on the stale value
The flag exposed two tests that passed only because they read pre-move values:
test_0057asserted that T stays monotone along a bulged surface. That held for a remapped field only through the stale vector. The test is about point location, so T is nowcarry.test_1070measured the strong constraint's flux afteradvancehad deformed the mesh and remapped the velocity. The constraint is identical either way (1.27e-4 on its own geometry, against the bound of 1e-3). It now measures just before the deform.Not in this PR
_mesh_versionhere broke snapshot restore, so it needs its own design.except Exception: continueinremap_var_set, ghost disagreement under the clamp, andfollow_metric's per-rank decision.Tests
tests/test_0766_mover_refreshes_mesh_vector.py(tier B): the remap, and a snapshot restored across a move. Without the flag a solve's integral reads 1.897 against 1.769.tests/parallel/test_0766_mover_refreshes_mesh_vector_parallel.py(tier B): the remap, a rank whose nodes don't move, and a rank with no cells. 3 passed at np 2, 4 and 8. Without the flag all three fail at np 2. With the decision per rank, the non-moving-rank test hangs at np 2, 4 and 8.test_1070change, which is corrected; those two tests pass now. Serial.No test exercises a solver directly: the tests read an
Integral, which uses the same vector. The table above is the solver evidence, fromscripts/sessions/mmpde_annulus/probe_state.pyonfeature/mmpde-annulus-fmg, which also carries an unfinished mover restart, so those numbers won't reproduce exactly here.Checklist (UW3 Style Charter)
level_*andtier_*markers.array/mesh.X.coordsUnderworld development team with AI support from Claude Code