Repository navigation
The mesh-move remap has no limiter by default, and a variable's kd-tree follows a mover - #982
Conversation
… a mover The monotone clamp bounded every remapped value by its nearest DOFs on one rank. On a smooth field that adds error (interior 8e-4 to 1e-2 in serial, 5e-2 in parallel) and makes the result depend on the partition (8e-2 between rank counts on a wall slide). Without it the remap agrees across rank counts to 1e-15. A target outside the old mesh takes the location fallback in global_evaluate, which reads the variable's kd-tree. That tree was keyed on _mesh_version, which a mover does not change, so it is now keyed on _geometry_version. Underworld development team with AI support from Claude Code
Adversarial reviewAn independent reviewer read the commit before the last test edits. This was by reading code; it ran nothing. Fixed
Accepted, measured, and in the description Not fixed: the comment at Attacks that found nothing
Issue verdicts: #960, #966, #977 and #979 are still live; this branch fixes one of #966's caches and doesn't close it. An earlier version of this branch, a geometric read on the old wall, went through two reviews that found real failures on graded walls, coplanar walls and hex walls. That is why this is the simple version. Underworld development team with AI support from Claude Code |
Underworld development team with AI support from Claude Code
Development's _evaluated_in_storage_layout (7bfdfaa) does what this branch's _values_in_data_layout did, with units, so the conflicts take development's helper, and the limiter takes development's per-entry bounds (this branch's reorder would now permute twice). What remains here is the swarm view of a full matrix and the symmetric-tensor tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two conflicts combine both sides: the evaluation stays at the non-dimensional coordinates the DM holds (this branch), and the result is laid out by development's _evaluated_in_storage_layout, which also reduces a dimensional evaluation to the non-dimensional values var.data holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The mesh-move remap no longer applies the monotone clamp by default, and a variable's kd-tree now follows a mover. Stacked on #959; review and merge that first.
The clamp was added in
086cad25for a parallel free-slip failure. Louis asked for it to go: it bounds every remapped value by its nearest DOFs on one rank, which adds error on smooth fields and is what made the result depend on the partition.Why the original failure doesn't come back
June's failure was targets outside the old mesh: a wall node that slid along a convex boundary sits a sagitta beyond the old polygon, and in parallel the value could come from a far cell. Those targets now take the location fallback in
global_evaluate. That fallback is the best-claim reduction with an inverse-distance read, which is a convex combination, not the FE basis. An independent reading of that path found no way to the raw basis for exterior targets. June's np 5 fault run itself has not been re-run.The kd-tree
The fallback reads each variable's kd-tree, which was keyed on
_mesh_version. A mover doesn't change that, so after a mover the tree stayed at the old nodes (rbf_interpolateoff by 0.2 on the new test). It is now keyed on_geometry_version, which moves with the coordinates and which the snapshot check does not read. This is one of the caches listed in #966; the others stay as they are.Measured
Wall vertices slide a fifth of a cell along an annulus, with a smooth P2 field (largest over np 1, 2, 4, 8):
A mover move at np 5 on a 3-level annulus (penalty free slip, sharp T, live velocity), T error against its formula:
The clamp column of the second table is with the unfinished frozen metric on
feature/mmpde-annulus-fmg, and this PR's column is the default metric over 3 moves, so compare orders of magnitude only. v_rms is 0.765 in both, and T stays within 0.001-1.300.What this gives up
A P2 field can now leave its nodal range inside a cell at a front narrower than a cell. On an annulus (h about 1/32):
Viscosity-bearing fields are already kept to P0/P1 by the
adaptive-meshingguide, and P1 stays in range. A level-setphior a yield field in P2 is exposed.REMESH_MONOTONE=clampremains available.Repeated wall slides also accumulate wall error through the fallback's low order: 6.5e-2 after 4 slides of a fifth of a cell each. A geometric read on the old wall gave 8.6e-3, but needed about 90 lines and failed on graded and coplanar walls in review, so it was dropped (
bugfix/remap-wall-dofs-geometry, a record only). Raising the fallback's order is the better route, later.Tests
tests/test_0768_remap_without_a_limiter.py(tier B): the wall slide and the kd-tree fail on the After a mesh move, solves see the remapped field; a move is decided over all ranks #959 build (interior 9.8e-3 against the 2e-3 bound). The P1 test also passes on that build, because the clamp bounds it there: it records a property, not this fix.tests/parallel/test_0768_remap_without_a_limiter_parallel.py(tier B): passes at np 2, 4 and 8; fails on the After a mesh move, solves see the remapped field; a move is decided over all ranks #959 build at np 4 (5.1e-2). It checks each rank count against bounds, and does not compare rank counts directly. That was a separate run, the 1e-15 above.test_0780depended on the old cache key and now bumps_geometry_version.rbf_interpolate(32 files): 274 passed, 4 skipped, serial, before the last test edits; the edited files were rerun and pass. Eight parallel files at np 4 pass.This leaves #960 open (the
except Exception: continue, ghosts in discontinuous fields,follow_metric), and #966 open (swarm proxies and the other caches).Checklist (UW3 Style Charter)
level_*andtier_*markers.array/mesh.X.coordsUnderworld development team with AI support from Claude Code