Repository navigation
The rotated wall normal is summed across ranks in every component (#941) - #1265
Conversation
_sum_node_vectors_across_ranks completed a node's geometric normal through the velocity field's local-to-global scatter, which carries no DOF an essential condition constrains. At a node where a rotated wall meets a wall pinning one component, that component kept each rank's own share, zero on a rank holding none of the node's facets: the normal there depended on the partition (H1 measured 0.5 % in sigma_nn at a stranded corner), and since #939 so does the corner's reduced-constraint value. The sum now rides the DM's point star forest, dim doubles per point: reduced onto the owner, broadcast to every copy. A rank that owns a node whose facets all sit on neighbours still gets it (the owner's row receives their shares), so _local_boundary_candidates, which collected those nodes for the old scatter, is removed. Serial is unchanged. tests/parallel/test_0941: on a box with a tilted top (rotated free slip, geometric normal) and the vertical velocity pinned on the left wall, every rank holding a top-wall node holds the same normal, by global point number, and the top-left corner takes the tilted wall's normal on every rank. Not run here (no MPI on this machine). Underworld development team with AI support from Claude Code
|
Adversarial review, round 1 (head 8bc9434)
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: the fix is right; the test needs a change before merge. The fix, with H1's stranded-corner partitionWe used H1's shell-partition hook (layouts c941a and c941b, which strand the corner on a rank with none of its rotated-wall facets), set to this test's corner (0, 1).
Findings
Attacks that failed
Underworld development team with AI support from Claude Code |
H7's review: under the default partitions the test could not fail on the case it is for (at np 2 no Top node was shared, so the first test failed on the branch as on development; at np 3 both passed on development). The fixture is now the tilted box as triangles from a cell list, labelled on rank 0 and distributed with a shell partition: the top-left square is split along the diagonal from the corner, and rank 1 holds its lower triangle (the corner and a Left facet, no Top facet) and the left column below it. A collective check that some rank holds the corner with none of its Top facets skips the tests if the partition does not strand it. Checked serially (no MPI on this machine): the fixture builds, each wall label holds its 8 facets and 9 vertices, the corner's normal is the tilted wall's, and the solve converges; at np 1 the tests skip. Underworld development team with AI support from Claude Code
|
Pushed a24f84a for the merge condition in H7's review:
Underworld development team with AI support from Claude Code |
|
Re-check by H7 (a Claude review session running parallel probes on a 96-thread Linux workstation: Intel Xeon Gold 6240R, MPICH) at a24f84a.
Our merge condition is met; #1265 passes. Underworld development team with AI support from Claude Code |
|
Merged development, with #1262 at 7091a93, into this branch: dd76e7e. The merge of Underworld development team with AI support from Claude Code |
In parallel, the geometric normal of a rotated free-slip wall is now summed across ranks in every component, including the components an essential condition constrains.
This is a parallel change written without a parallel run. We do not run MPI on the machine it was written on, so its first runs at np 2 and 3, of the new test and of the existing rotated parallel files, are the reviewer's.
What changes
On development.
rotated_bc._sum_node_vectors_across_rankscompleted a node's normal, Σ|f| n_f over the wall's facets, through the velocity field's local-to-global scatter. That scatter carries no constrained DOF.Now.
dimdoubles per point. Each rank's contributions are reduced onto the point's owner, and the total is broadcast to every copy._local_boundary_candidates, which collected those nodes for the old scatter, is removed.Tolerances and coordinate matches
Tests
tests/parallel/test_0941_rotated_normal_summed_on_pinned_components_parallel.py, level 2, tier B, in the parallel glob. The fixture is a box whose top rises by 0.25 over its width, with rotated free slip on the top (geometric normal), the vertical velocity pinned on the left wall, and no slip on the bottom and right.Not run here: we do not run MPI on this machine. The reviewer needs to show at np 2 and 3 that both fail on development and pass here. If the box's partition never strands the corner, the fixture needs a constructed partition like H1's.
Serial runs (macOS, 12-core Apple M4): test_0846, 1018, 1066, 1131 and the new file (its MPI cases skip): 82 passed, 2 skipped.
Merge order
Merge this before #1263 (#939), whose corner datum reads the pinned part of this normal.
Review
Adversarial review, below.
Issue state
#941: fixed by this branch (label fixed-in-PR), pending the reviewer's np 2 confirmation.
Underworld development team with AI support from Claude Code