Repository navigation
Fix collective evaluation of prescribed rotated wall data (supersedes #855) - #1097
Conversation
Schedule FE-valued normal data in globally registered boundary order, including empty (0,dim) coordinate batches on ranks without constrained nodes. Local node/spec grouping could enter mesh local-vector collectives in different orders and hang before Stokes iteration. Preserve boundary attribution and SVD signs for each owned datum row. Validation: two focused annulus component checks pass serial and on both MPI2 ranks, covering ranks with missing local boundary groups and FE evaluation of empty batches. No native or mathematical discretization change. Next: validate a fresh Gadi int32 installation on MPI16 and rerun the case2 h32 reproducer before primary-workflow acceptance.
State boundary registration order explicitly, mark the MPI regressions, and correct the datum-node payload comment. Underworld development team with AI support from Claude Code
One conflict, in build_rotation: development added given_dofs (#968) beside the datum_nodes list whose payload this branch changed to carry the boundary name. Both are kept. No other change is made in this merge; the fault-pair sheet datum that the name filter now drops is fixed in the next commit. Underworld development team with AI support from Claude Code
…fore asserting Review of #855 (2026-11-06), findings 2 to 4. A third test puts FE data on two walls of a box and solves, so the repaired call site in build_rotation is the code under test. The data prescribe uniform flow, whose energy is exactly 1/100. On the old schedule this solve hangs at three ranks before its first Stokes iteration. The schedule test now gathers every rank's schedule before asserting on it, so a rank-asymmetric schedule fails with a message instead of hanging in a collective. The assertion that could not fail and the Open MPI variable that does nothing under MPICH are removed. Underworld development team with AI support from Claude Code
The datum schedule filters rows by boundary name. Development's fault-pair rows carried the datum expression in that slot, so after the merge no row matched the sheet and its prescribed normal velocity was dropped without an error. The row now carries the sheet's registered name. test_1092::test_fault_reaction_is_the_membrane_resultant is the regression test: on the merge commit it fails with a maximum error of 0.0474 against a limit of 0.00096, and it passes on development. Underworld development team with AI support from Claude Code
No conflicts. Underworld development team with AI support from Claude Code
build_rotation enters the datum schedule only when datum_specs is given, so the helper's own check for None could not be reached (review of #855, finding 4). Underworld development team with AI support from Claude Code
Independent review of #1097: on the unit box every rank owns a datum row, so a build_rotation that evaluates data only on ranks holding datum nodes passed the test at two, three and four ranks. That mutant hangs on a 1 x 4 box at three ranks, where one rank owns no wall node (measured in the review). The test now uses that box; its exact energy is 4/100. The Open MPI oversubscribe variable on the three-rank CI line is restored with a comment: it does nothing under MPICH and lets a two-slot Open MPI host start three ranks. Underworld development team with AI support from Claude Code
One conflict, in scripts/test.sh: #1092 rewrote the parallel pass to add an np 3 pass. That pass is opt-in (--full-parallel) and CI runs 'test.sh --p 2' without it, so the dedicated np 3 line for test_1084_rotated_datum_collectives is kept, placed before #1092's block, which is taken unchanged. Underworld development team with AI support from Claude Code
|
NOT READY at 09e3682: the code is correct and every claim H6 makes held when measured, but the new build_rotation test does not guard half of the fix. One small test change is needed (merge condition 1). PR #1097 review (supersedes #855), independent pass by H1
FindingsMedium: the new build_rotation test does not catch the outer-gate half of the fixThe fix has two parts:
Mutant M4 reverts (b) only. It survives the whole of test_1084 at np 2, 3 and 4: 4 passed on every rank ( Why it survives: on the test's 1×1 box with cellSize 1/16, every rank owns at least one Top or Bottom datum row at np 2–4. So no rank is ever empty in build_rotation, and the gate is never exercised. The schedule unit test does build an empty rank, but it calls M4 is a real hang. In The fix is cheap and measured:
Check (1): collectives on every rank, including ranks with no datum rows and no fault rows. PASS (measured)
Check (2): the new build_rotation test fails on development and passes on the branch. CONFIRMED, with one addition
Check (3): the SHEET_TANGENCY one-liner (aa02d36). CONFIRMED
Check (4): the removed None guard (09e3682). SAFE [read]
Check (5): neighbouring rotated free-slip tests, branch against base. NO DIFFERENCE (measured)
Check (6): mutants of the main fix
Low:
|
PR #1097 re-check at 009e96e (test change only)READY at 009e96e. 009e96e changes only tests and
Both merge conditions from the first pass are met. Underworld development team with AI support from Claude Code |
This supersedes #855. It is @gthyagi's branch at
1d2297b8with his two commits kept,developmentmerged in, and the corrections our review of 2026-11-06 listed as merge conditions.The fix (gthyagi, unchanged)
When an FE field prescribes the wall-normal velocity on a rotated free-slip wall, ranks that own nodes of different walls evaluated that data a different number of times. FE evaluation is collective, so the solve hung before its first Stokes iteration.
_datum_batchesnow schedules the evaluations by registered boundary on every rank, including ranks with no nodes on a wall.What we changed, and why
development(93e66ee, then f8c6014). One conflict inbuild_rotation, where Rotated free slip: a mesh whose walls mix given and default normals keeps a rigid rotation in its answer #968 addedgiven_dofsbeside the changeddatum_nodeslist; both are kept.rotated_bc.py). The schedule filters rows by boundary name; development's fault-pair rows carried the datum expression in that slot, so after the merge the sheet's prescribed normal velocity was dropped without an error. The row now carriesSHEET_TANGENCY.test_1092::test_fault_reaction_is_the_membrane_resultantis the regression test: on the merge commit it fails with a maximum error of 0.0474 against a limit of 0.00096; it passes on development and on this head.test_build_rotation_evaluates_fe_data_on_every_rank_in_registration_orderputs FE data on two walls of a 1 x 4 box and solves. The data prescribe uniform flow, whose energy is exactly 4/100. The box is tall so that at three ranks one rank owns no wall node (independent review: on a unit box, abuild_rotationthat evaluates only on ranks holding datum nodes passed the test, and hangs on this one). On development this test hangs at three ranks (supervisor exit 124, ranks waiting inallreduce); it passes in serial there. It gathers each rank's schedule before asserting._datum_batchesthat repeated its only caller's.Not done: renaming
node_dspec(it now holds a boundary name). The variable is development's, and this PR leaves development's lines inrotated_bc.pyalone apart from the one sheet-datum row.Verification (hyperion, PETSc int32, MPICH 5.0.1, head 009e96e)
tests/parallel/test_1084at np 1, 2, 3, 4, 5build_rotationtest on development, np 3test_1092, all four tests including Maxwelltest_1092fault reaction on the merge before the fixparallel/test_1066_rotated_datum_parallelat np 2, 3, 5 (09e3682)test_1018_rotated_freeslip,1066,1085,1131,0846,1077(d35ff07)scripts/check_test_coverage.pyNot run: anything above np 5; the full suite (left to CI).
Issues
No open issue names this hang. #883, #939, #941, #348 and #878 are untouched by this change.
Checklist (UW3 Style Charter — docs/developer/UW3_STYLE_CHARTER.md)
level_*andtier_*markers (S8)maybe_/try_/do_) and no commented-out code (S3, S4).array/mesh.X.coords— nowith ....access(...), nomesh.data(S7)pixi.toml/pixi.lockor other dependency changes riding in an unrelated PRUnderworld development team with AI support from Claude Code