Repository navigation
On a split-node fault the stress history stays on the grid; tracing flavours are refused (#871) - #1232
Conversation
fb44b56 to
8cafff6
Compare
…lavours are refused (#871) A trace from a point within about h/2 of the slit can be located on the other side of it, and reads the other block's history (#871). Until the trace respects the fault, a Stokes solver whose mesh has a split-node fault takes stress_transport="eulerian" by default, and refuses "semi_lagrangian", "integration_point" and "forward" when the history is made, naming #871. "none" and "lagrangian" do not trace and stay available. The decision is reduced over ranks, so every rank takes it together. Underworld development team with AI support from Claude Code
8cafff6 to
1eadd5f
Compare
|
Review from the Underworld development team with AI support from Claude Code (H1: review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)) Verdict on 1eadd5f (and 8cafff6): changes requested (small: one docstring, the PR body, one test case; finding 1). The runs below were made on fb44b56. The head has since moved to 1eadd5f, rebased onto development after #1231 merged; MethodThe base is #1231's head at 5f5a395, which merge-bases with development at 4ab522a. Both #1231 and this PR change Python files only. Both were run as Python overlays on one build of 4ab522a, whose compiled sources match the merge base exactly (an empty diff over
The fault mesh is the PR's own
Results"Same on all ranks" means that the outcome was gathered from every rank and compared whole: the
The VE solve was a frictionless fault in simple shear with a Maxwell model at Δt = 0.1, run for 4 steps at a Stokes tolerance of 1e-8. The table gives the largest relative difference from np 1 over the 4 steps:
The faulted runs agree with np 1 as closely as the unfaulted control does, which uses the same grid history. The spread comes from the history's own projections, not from the fault or the guard. Findings
Confirmed correct
Run and not run
Note A (not this PR): two hangs or aborts with an empty rank reproduce on base exactly as on the PR. Both come from the test-only shell partition.
Both will be raised separately; logs kept by the reviewer. Underworld development team with AI support from Claude Code |
…hinSheet says it refuses a trace there; tests for lagrangian, ThinSheet and the MAX (review of #1232) Underworld development team with AI support from Claude Code
|
Review from the Underworld development team with AI support from Claude Code (H1: review and parallel test runs on a 96-thread Linux workstation (Intel Xeon Gold 6240R, AVX-512; MPICH)) Re-check of 8265ec0: ready to merge on green from this review. All four findings from the first review are fixed, and the fixes hold at np 1, 2 and 3. Two small notes on the PR body follow; neither blocks the merge. Method#1231 has merged, so this PR's base is now development, at 8a31226. Against that base the PR changes Python files only: The parallel layouts are a test-only shell partition of the gmsh mesh:
Results"Same on all ranks" means the outcome was gathered from every rank and compared whole: the transport chosen, the history class, and for a refusal the exception type and message.
The getterThe getter reads the local record ( The disagreement is harmless:
Notes
Confirmed correct
Run and not run
Logs kept by the reviewer. Underworld development team with AI support from Claude Code |
Two commits on development after #1231 (merged as 8a31226): 1eadd5f, the guard, and 8265ec0, from the parallel review.
A semi-Lagrangian trace must not cross a fault. Louis, on #871 (2026-11-15): "as we found in the fault sessions, trace back should not actually cross the fault!"
A trajectory traced from a point within about h/2 of a split-node fault can be located in a cell on the other side of the slit, and the history it reads there belongs to the other block. #871 measured this on a Maxwell thin sheet: a period-2-step slip-rate oscillation and patchy stress, both removed by the grid history. ThinSheet already defaults to the grid history for this reason. Stokes did not: its viscoelastic history was exposed by default.
Until the trace itself respects the fault (clipping the trajectory at fault facets in
CharacteristicTrace.departure_points, plus a side-aware evaluation at the foot), this PR adds a guard in_StressHistoryMixin._create_stress_history_ddt.When the mesh carries a split-node fault (
mesh._fault_point_pairs):stress_transport"eulerian", the grid (SUPG) history"semi_lagrangian","integration_point","forward"ValueErrornaming #871"none""lagrangian"The decision is reduced over ranks (MAX), so every rank takes it together. Unfaulted meshes are unchanged.
The guard sits in the stress-history mixin, so it applies to ThinSheet as well. A flat ThinSheet on a faulted mesh now refuses
"semi_lagrangian", which base allowed. That is Louis's no-crossing rule, and ThinSheet's docstring now says so. ThinSheet's own default was already the grid history.Before the model is assigned, the
stress_transportgetter reports the effective default:"eulerian"on a faulted mesh. That read is rank-local; the decision taken when the history is made is the collective one.Tests
tests/test_1107_stress_history_fault_guard.pyusesadd_faulton a simplex box, with a frictionless fault in simple shear and a Maxwell model:"none"and"eulerian"are allowed;It also checks that
"lagrangian"is allowed, that the getter reads"eulerian"on a faulted mesh before the model, and that a faulted ThinSheet refuses a trace. On this branch, with the thin-sheet suitestest_1076andtest_1077, it gives 17 passed. Ondevelopment(4ab522a) it gives 6 failed and 4 passed. The failures are the guard's own cases: the default case, the three refusals, the getter, and the ThinSheet refusal. The grid-history and unfaulted cases pass, as they should.tests/parallel/test_1107_..._parallel.pychecks that every rank defaults to the grid history and solves, and that every rank refuses, including when only rank 0 holds the fault record (the MAX itself): 3 passed at np 2 and at np 3.Measured by H7 (the stress-history desk, a Claude session on a 96-thread Linux workstation: Intel Xeon Gold 6240R, MPICH).
Refs #871. #871 stays open for the trace-level fix.
Checklist (UW3 Style Charter)
level_1andtier_amarkers; it fails on development (S8)Underworld development team with AI support from Claude Code