Repository navigation
Rotated free slip: walls mixing given and default normals remove the rigid rotation (#968) - #1052
Conversation
…tation exemption (#968) On a mesh that declares its rotation modes (#906), a declared mode is exempt from the constraint-row test when faceting is the only reason it could fail it. The exemption needed every rotated wall on the facet-averaged normal; a mix refused it for the whole set, so a faceted default-normal wall failed the test by its faceting error, the rotation was not removed, and the answer carried it (spherical shell, cell size 0.35, Lower given the radial normal: rate 0.084 in a v_rms of 0.105). The exemption now covers the facet-averaged walls, with the sphere test about the common centre as before, and a given-normal wall is tested on its own constrained rows: an exact normal passes to round-off, a wrong one rejects the mode. build_rotation groups the constrained rows by the wall they came from (_rotated_normal_rows_by_wall); _declared_mode_test_rows gives the given walls' rows to _mode_satisfies_constraints (declared_rows), and the report records their violation (given_viol). When every wall takes a given normal nothing changes. The same shell now leaves a rate of 3e-17 (v_rms 0.058, as with the default normal on both walls). test_1131: the mixed case on the slid annulus removes the rotation (development: exempt [False], no mode); a tilted given normal beside a default wall rejects it on its own rows. Both fail with development's rotated_bc; a mutant that skips the given walls' test is caught. 53 rotated test files (serial): 510 passed. Underworld development team with AI support from Claude Code
…en it rejects - F1: the given walls' test read the constrained rows, and where a given wall meets a facet-averaged one the node's frame averages both normals, so a genuine rotation was rejected at the seam (given_viol 0.096 on a split annulus wall, 0.15-0.19 on the shell). build_rotation now records each given wall's owned velocity rows with its own normal there (_rotated_given_wall_dofs), and the mode is tested by n . mode (_given_normal_violation): 7.8e-18 on the same seam. - F2: a mode the given-wall test rejects warns once, naming the walls and the violation; the rotation stays in the answer, as on development. - F3: rejected_by "given_wall"; the solve reports the walls tested against their own normal (declared_modes_tested_walls); the exemption comment says what it covers. - F4: test_1131 adds a given radial normal on a wall pushed off its circle beside the slid default wall (kills the sphere test applied to every wall) and a split-wall seam (kills the frame-row test); the parallel file adds the mixed and tilted cases, measured on the global vector, with the verdict compared across ranks. Also: test_1152 prints one line per MMPDE move past pytest's capture. At load 60 on hyperion its two cases take 157 s and 254 s at np 2, against 109 s for both on CI, and the MPI supervisor kills a job silent for 300 s. 53 rotated test files (serial): 512 passed. test_1152 serial: 2 passed. Underworld development team with AI support from Claude Code
Review record, round 1 of 2: 9b67509This is the pre-PR round, on the branch's first commit. 7a70b2e answers F1–F4; round 2 follows in a separate comment. Paths under Review of the #968 fix (bugfix/rotated-mixed-normal-modes-968, 9b67509)Verdict: the fix is correct for the case #968 describes and is safe to merge, with conditions: a given-normal wall that meets a facet-averaged wall at a corner is still wrongly rejected, and it is rejected silently (F1). A rejection on the given walls now raises no warning (F2). Two of the three mutants survive the test file (F4). Hyperion, 2026-11-11. The branch build is wt-968 at 9b67509. The base build is wt-1051 at bbdc7c7, whose src matches f562bdf. I checked that the installed Method
1. Reproduction3-D SphericalShell, cellSize 0.35
2-D Annulus, Lower radial given, Upper default
2. Parallel
The decision matches serial and is the same on every rank, both for accepting and for rejecting. The slid annulus also agrees at np 4, under both the default and the 3. Cache path
4. Given wall meeting a default wall at a cornerThe rotation is a genuine mode only when every wall is a circle or sphere about the centre. A corner between a given wall and a default wall therefore exists only when one sphere carries two labels. I split Upper into UpperE and UpperW. At the seam node, a given radial normal and the one-sided facet normal of the default side differ. The SVD therefore constrains 2 rows; in 2-D the node is fully pinned. Those rows sit in the given wall's test set.
5. Exemption semantics in the report
I recommend replacing the bare flag with a per-wall statement, for example:
6. Tests and mutantsTest runs
Mutants on test_1131 (branch build, in-process)
Tilt and offset threshold (slid annulus, Lower given, Upper default, branch)
Findings
Merge conditions
Without items 2 and 4 the change is still a strict improvement on development in every case I measured, except the warning loss in F2. Issue verdicts
Not tested
Underworld development team with AI support from Claude Code |
Review record, round 2: 7a70b2ePaths under Review of PR #1052 (#968), round 2, at 7a70b2eVerdict: ready to merge. Every round-1 finding is resolved or reduced to wording, and I found no regression. The one new gap: a given-wall rejection on the direct-LU route records Hyperion, 2026-11-11. The branch build is wt-968 at 7a70b2e; its installed Method
Round-1 findings: statusF1: a given wall meeting a default wall at a seam (fixed)The given walls are now tested as
Adversarial checks.
F2: no warning on a given-wall rejection (fixed on the iterative route; N1 on LU)
F3: report fields (fixed; one wording residue)
What remains is wording:
F4: tests and mutants (fixed for M1, M2 and M4)
M3 surviving is acceptable. With the test now against the given normal, dropping the seam nodes changes a verdict only when a given normal is wrong at the seam alone; M3 is close to an equivalent mutant. F5: a missing per-name label lets a wall pass the sphere test vacuously (unchanged; not new, [read])Not touched by this change. Still low. test_1152
Test runs
Regressions
Faults and thin sheets with rotated walls are covered only by the suite files (test_1086, test_1088, test_1097, test_1142 and others), all of which pass. I built no separate mixed-normal fixture for them. Fault pair rows are not given-wall nodes, so the new test does not see them [read]. New findings
Merge conditionsNone blocking. I recommend fixing N1 (one warning call in Issue status
Not tested
Underworld development team with AI support from Claude Code |
Rotated free slip on a mesh whose walls mix a given normal and the facet-averaged one now removes the rigid rotation from the answer (#968). This is sub-bundle C2 of the rotated-territory sweep.
The defect
A mesh that declares its rotation modes (#906) exempts a declared mode from the test against the constraint rows when faceting is the only reason it could fail it: on a faceted sphere the facet-averaged normal is not radial at the nodes, so a true rotation fails the test by the faceting error. The exemption needed every rotated wall on the facet-averaged normal. A mix refused it for every wall, the faceted wall then failed the test, the rotation was not removed, and the answer carried it. On a spherical shell (cell size 0.35) with the analytic radial normal on
Lowerand the default onUpper, development leaves a rotation rate of 0.084 in a v_rms of 0.105 (1.4 times v_rms measured on hyperion), and warns.The rule now
n . mode, from the rows and normalsbuild_rotationrecords per given wall. Where a given wall meets a facet-averaged one the node's frame averages both normals, so the given wall is not tested on the frame (that rejected a genuine rotation at the seam, review F1).rejected_by: "given_wall"in the solve'srotation_gauge, and a warning naming the walls.The same shell now leaves a rotation rate of 3e-17 (v_rms 0.058, as with the default normal on both walls), at np 1, 2, 4 and 8 (hyperion). The solve's report gains
declared_modes_tested_walls, and each mode's report agiven_viol.docs/developer/subsystems/rotated-freeslip.mdstates the rule.Tests
tests/test_1131_rotated_nullspace_from_mesh.py(level_2, tier_b), on an annulus whose vertices have slid along their circles, so the default wall is faceted unevenly:[False], no mode removed);given_viol7.8e-18).tests/parallel/test_1131_rotated_nullspace_from_mesh_parallel.pyadds the mixed and tilted cases, with the verdict and the given-wall violation compared across ranks and the rotation measured on the global vector.The new serial tests fail with development's
rotated_bc.py; mutants that apply the sphere test to the given walls too, or test the given walls on the frame rows, are each caught. 53 rotated test files on wombat (serial, not level_3): 512 passed, 0 failed.Also in this PR
tests/parallel/test_1152prints one line per mesh move past pytest's capture. At np 2 on a loaded host (hyperion at load 60) its two cases take 157 s and 254 s, against 109 s for both on CI, and the MPI supervisor kills a job silent for 300 s. Test-only.Issue verdicts
Underworld development team with AI support from Claude Code