Repository navigation
An uncached rotated solve measures its first residual without the gauge (#884) - #1262
Conversation
…ge (#884) The rigid-rotation modes are collected after the first assembly on an uncached solve, so iteration 0's residual, r0, the reference and a warm start's rest-state residual kept the component the solve cannot reduce, while every later residual and a cached re-solve left it out. A first solve and its re-solve stopped against different references (annulus, body force (-y, x): r0 0.1213 uncached, 0.0703 cached). Once the modes exist at iteration 0, its residual is projected the same way, r0 and the reference are re-measured from it before the line search starts from it, and an uncached warm start re-measures its rest-state residual in the same quotient space. test_0884: a first solve and its cached re-solve share r0 and reference (0.0703), and an uncached warm start shares its rest-state residual and reference with a cached one. Both fail on development. Underworld development team with AI support from Claude Code
|
Adversarial review, round 1 (head f759dfb)
No findings. Issue state:
Underworld development team with AI support from Claude Code |
|
Second-desk review by H7 (a Claude review session running parallel probes on a 96-thread Linux workstation: Intel Xeon Gold 6240R, AVX-512, MPICH). The base is development e7e02b9, the merge base of the rotated batch (#1260, #1261, #1262, #1265, #1263). #1261, #1262, #1265 and #1263 change only Verdict: passes. Merge it after #1261: on its own it raises one iteration count, and #1261 removes the rise. MeasuredAnnulus, cell size 0.2, tolerance 1e-6, serial; the setups are #1261's table.
Findings
Attacks that failed
Underworld development team with AI support from Claude Code |
Brings in #1261 (the datum lift reference), which this branch follows; the merge of rotated_bc.py is automatic. Underworld development team with AI support from Claude Code
|
Merged development into this branch (no rebase, so no force-push): 64c2d26, with development at 71843b9, including #1261. The merge of Serial runs on the merge (macOS, 12-core Apple M4): the 33 test files that use rotated free slip, with test_0052, at levels 1 and 2: 403 passed, 1 skipped. Underworld development team with AI support from Claude Code |
Brings in #1260 (rotated sub-solve caps); the merge of rotated_bc.py is automatic. Underworld development team with AI support from Claude Code
An uncached rotated free-slip solve now measures its first residual without the rigid-rotation gauge, as a cached re-solve does, so both stop against the same reference.
What changes
On development.
Now.
Measured. Annulus, cell size 0.2, free slip on both walls, body force (-y, x) (a rigid rotation), tolerance 1e-6; serial, macOS (12-core Apple M4).
Each takes one increment on both branches. Development's two solves end at 1.08501485567e-9 and 1.08501485575e-9; this branch ends at 1.08501485388e-9 in both. The answers agree to round-off.
Tolerances and coordinate matches
None added. The tests compare the uncached and cached references to 1e-12 relative, two numbers that should be equal and that differed by a factor of 1.7.
Tests
tests/test_0884_rotated_gauge_before_first_residual.py, level 2, tier B:Both fail on development: 0.1213 against 0.0703, run with development's
rotated_bc.pybuilt in.Serial runs: the rotated slice (test_0022, 0846, 0884, 1018, 1058, 1061, 1066, 1092, 1113, 1131, 1136, 1142, 1143, 1158, 1159): 172 passed, 1 skipped (an x86-only case).
Not run: any parallel case. The projection uses
Vec.dot, which is collective, on modes every rank holds, inside a branch every rank takes (ctx is Noneanditers == 0).Review
Adversarial review, below.
Issue state
#884: fixed by this branch (label fixed-in-PR).
Underworld development team with AI support from Claude Code