Repository navigation
Conversation
…s, the same at any rank count interface_thickness carried each cell's thickness to the nodes from the nearest cell centroid among a rank's own cells. Near a partition boundary the nearest cell can be on another rank, and on a regular mesh a vertex is often equidistant from several centroids, decided by the local cell order: the initial level set depended on the partition, its volume by up to 1.3e-3 relative at np 2 (review of #1234). A node now takes the mean over the cells holding it, summed over every rank's owned cells through the basis coordinate DM's local-to-global with ADD_VALUES. test_1105's band and contour shares are counted over every rank. Underworld development team with AI support from Claude Code
…kness The drifts are unchanged to the digits shown but the last (-0.86% for -0.85% at scale 3). The thickness column is now defined: the node mean of epsilon over the cell size. Underworld development team with AI support from Claude Code
|
The level-set guide's band-thickness table ( The drifts are +0.844 %, +0.281 %, -0.183 % and -0.862 % at scale 0.35, 1, 2 and 3. The table had +0.84 %, +0.28 %, -0.18 % and -0.85 %. The thickness column is now defined as the node mean of ε divided by the cell size: 0.16, 0.46, 0.92 and 1.38. The old column's definition of h was not recorded, so its values (0.12 to 1.07) are replaced rather than compared. 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)) (H1 is the session that reviews pull requests and runs the parallel tests.) VerdictHead b7953dd: ready to merge on green from this review. ε and the initial volume are now the same at every rank count to round-off. We checked three meshes, default and random partitions, and an empty rank. The wall shift still differs from serial, by 0.2 to 0.6 %. That comes from a separate partition dependence in the SLCN transport, not from ε (finding 1). It needs its own issue. Build. The merge base is development 246d6ce. The PR changes no compiled source, so we copied its Results
Behaviour change (serial)A node's ε is now the mean over the cells around it, not the value of the nearest cell centroid. Serially, before against after:
The largest changes are at nodes between cells of different sizes. The initial volume moves by 0.8 % (box) and 1.9 % (Annulus). The docs page's band table was re-measured in the PR. Results saved with the old ε will not be reproduced exactly. The
Findings1. Medium (older than this PR, needs an issue): the SLCN transport step depends on the partitionWith ε and V0 now equal, the wall shift still differs between serial and parallel. np 2 and np 3 agree with each other to 1e-5 relative, but not with np 1: box 1.19405e-4 against 1.19192e-4 (0.18 %), Annulus 2.84551e-4 against 2.86189e-4 (0.57 %). Isolating it: one SLCN step on the box with the mass correction off, from identical initial fields (they agree to 1.1e-16 at np 1 and np 2).
So it is in the semi-Lagrangian departure-point evaluation, or in its use across ranks. This PR does not touch it. It is the remaining reason the wall shift is not serial's. 2. Low: the new test's fixture has no empty rank
Not run
Logs are kept by the reviewer. Underworld development team with AI support from Claude Code |
… an empty rank (review of #1239) 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)) (H1 is the session that reviews pull requests and runs the parallel tests.) Head 116b0a0: ready to merge on green from this review. What changed. Since b7953dd the diff is The test file.
The CHANGELOG matches what we measured:
One low point on the new case. It also passes on development (np 3, all ranks), so it cannot catch the defect.
Logs are kept by the reviewer. Underworld development team with AI support from Claude Code |
…art (review of #1239) Underworld development team with AI support from Claude Code
A follow-up to the review of #1234, which found it. No issue is filed.
What changes
level_set.interface_thicknesscomputes a thickness per cell and carries it to the level set's nodes. It took each node's value from the nearest cell centroid among the rank's own cells. That depended on the partition in two ways:The reviewer measured the effect on the initial level set's volume, relative to serial: 1.4e-5 (box, np 2), 3.7e-4 (box, np 3) and 1.3e-3 (Annulus, np 2). So a parallel run started from a different field and target volume.
Now a node takes the mean over the cells that hold it:
_get_coords_for_basisreads.localToGlobal(ADD_VALUES).This changes serial results too. The thickness at a node is now the mean of its cells, not one cell's. Measured by the reviewer, serially:
Saved level-set results will not reproduce exactly.
docs/developer/CHANGELOG.mdsays so.At np 1 to 3, ε and the initial volume now equal serial to about 1e-16, with a random partition and with an empty rank (the reviewer's runs).
The guide's band table (
docs/advanced/level-set-transport.md) is re-measured with the new rule. The drifts are unchanged to the digits shown, and the thickness column now has a stated definition.test_1105_levelset_rotationpasses on its thresholds.test_1105_levelset_rotation's band-share and contour-mismatch checks now count nodes over every rank. This is the review's low finding: a rank-local share failed on one rank at np 2.Tolerances and coordinate matches
empty_rank_fixtures, shared among every rank and graded by x ↦ x², not a gmsh mesh, so the values do not depend on the machine.Tests
tests/parallel/test_1105_level_set_epsilon_at_any_rank_count_parallel.py: a second case compares ∫ε on the triangle with one rank empty against the same triangle on every rank, at the same rank count (from np 3), to 1e-12. The file is reached by thetests/parallel/test_*.pyglob inscripts/test.sh:MeshVariable.coordsfor degree 1 and 2, continuous and discontinuous, on triangles and quadrilaterals. ε is finite everywhere.Adversarial review (author's pass)
interface_thicknessis collective now: the local-to-global and global-to-local run on every rank, including a rank with no cells, which adds nothing. It is called where the level set is set up, on every rank._get_owned_cells_mask), so a ghost cell is not counted twice.Underworld development team with AI support from Claude Code