Repository navigation
test_1063: topography anchors from the traction, and an exact-solution convergence test (#826) - #1259
Merged
Merged
Conversation
… exact solution The iso case is a single Fourier mode with a closed-form solution (derived in the test with sympy): velocity L2 0.616928007786, mean-stripped topography 37.7800672892. Errors at cellSize 0.06 and 0.03 and the observed order between them are asserted. About 95 s serially. Underworld development team with AI support from Claude Code
…826) topography() has returned the full boundary traction h + r(u.n - g) since a9945bc (#617); the macOS anchors of 2026-08-15 held the bare multiplier. Re-recorded from the integration desk's macOS run. The macOS gauge anchor held the bare multiplier too and is removed until re-recorded on macOS. The anchor gate tightens from 1e-2 to 1e-4 (ten times the partition reproducibility of the topography). Underworld development team with AI support from Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
Test-only.
tests/parallel/test_1063_constrained_freeslip_parallel.py's macOS topography anchors were 1.8 % (ti) and 0.48 % (iso) off on the mesh they were recorded on, with the velocity matching to 4e-11 (#826; the integration desk's macOS run).What moved the value: a9945bc (#617, 2026-09-03).
topography()changed from the bare multiplierhto the full boundary tractionh + r(u.n - g), the augmented-Lagrangian share included. The velocity is untouched. The anchors were recorded on 2026-08-15 (#568), before it. Confirmed from one solve on current code (Linux, 430 cells): the bare multiplier gives iso 37.8596 and ti 37.0762, matching the old macOS anchors to the 434/430-cell mesh difference, and the traction gives the current values.Why the new number is right. The iso case is a single Fourier mode with an exact solution (zero slip at r = 1/2, free slip at r = 1, force 100 sin 3θ r̂). I derived it in closed form: velocity L2 0.616928007786, mean-stripped topography 37.7800672892. Relative errors on Linux:
Both readouts converge to the exact value; they differ by
r(u.n - g), the constraint residual times r, which vanishes with refinement. On this smooth case at the anchors' coarse meshhhappens to be closer, but the traction's error falls faster (order 3.2 then 2.0, against 1.6 and 1.7) and is the closer one by cellSize 0.03. The traction is what holds the boundary (the CBF identity in #617), and on SolCxhalone is off by 104 % (#617's measurement). TI has no exact solution; its two readouts converge to the same value (37.012 and 37.016 at cellSize 0.03).So the anchors are regression gates on the coarse discrete answer, not accuracy claims: at cellSize 0.12 the topography is 0.7 % (iso) and 2 % (ti) from converged. The file's comment now says so.
Changes
his 37.817 and its traction 37.997) and passed only under the 1e-2 gate. No macOS traction value for it is to hand, so that mesh now skips the gauge anchor, and the skip message prints the values to record. For the integration desk: please re-record it from a macOS run (python tests/parallel/test_1063_constrained_freeslip_parallel.py gauge).accuracy_anchor's fingerprint match.tests/test_1063_constrained_freeslip_exact_annulus.py(level 2, tier B): the exact solution, derived with sympy in the test with the steps in its docstring, plus a check that the derivation gives the recorded values. The solve at cellSize 0.06 and 0.03 asserts each error (bounds twice the measured) and the observed order between them (≥ 1.6; measured 1.8 velocity, 2.0 topography). About 95 s serially.What was run
On a 96-thread Linux workstation (single system image, Intel Xeon Gold 6240R, MPICH):
tests/parallel/test_1063_constrained_freeslip_parallel.py, np 2tests/test_1063_constrained_traction.py, serialscripts/check_test_coverage.pyNot run
macOS (the re-recorded macOS anchors are the integration desk's numbers; the gauge anchor waits for its run); np 3 and 4; the full suite.
Fixes #826
Underworld development team with AI support from Claude Code