Repository navigation
A refinement that leaves wall vertices off their wall says which walls (#949) - #1280
Merged
lmoresi merged 5 commits intoNov 20, 2026
Merged
Conversation
#949) The refinement guard keeps cells valid by leaving some moved vertices where refinement put them, and warned only "N vertices ... stay where refinement placed them". On a refined simplex CubedSphere those vertices sit off the inner sphere (numElements 3: 21 at refinement 2), which a boundary condition or a surface placed on that wall then sees, and nothing said so. The warning now names the walls the vertices are left off (gathered over the ranks; the held count is already global, so every rank reaches the gather), and appends a generator's remedy when its refinement callback carries one. CubedSphere's says the vertices sit on a crease between wall patches, that numElements=4 held none at refinements 1 and 2 (measured) and that simplex=False has no such crease. The cross-patch flip that would place them stays open on #949. test_0949_refinement_says_which_walls_are_left_off: numElements 3 at refinement 2 warns with 21 vertices, the Lower wall and the remedy; numElements 4 says nothing. Underworld development team with AI support from Claude Code
Member
Author
|
Adversarial review, round 1
No findings. Underworld development team with AI support from Claude Code |
Member
Author
… no platform count - The allgather of each rank's walls moves out of `if held:` to just before it, under `if callable(refinement_callback):`. The scan still read that guard as rank-local (a call on a parameter), so it is in test_0052's ACCEPTED with the reason: one callback object, the same on every rank. - test_0949 pinned "21 vertices", the macOS count; the Linux runner's gmsh mesh holds 47. It now asserts a positive count, the Lower wall and the remedy, and says both counts were measured. Underworld development team with AI support from Claude Code
Member
Author
|
Pushed 6620222, for the two CI failures:
Serial (macOS, 12-core Apple M4): test_0949 and test_0052, 22 passed. Underworld development team with AI support from Claude Code |
lmoresi
added a commit
that referenced
this pull request
Nov 24, 2026
…ny-platform test_0949: the walls named are any non-empty set of the shell's walls (#1280 follow-up)
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.
The mesh refinement guard's warning now names the walls whose vertices it leaves off, and gives a generator's remedy when the generator has one. For a refined simplex
CubedSphereit says what to do.What changes
On development. The refinement guard (#946) keeps every cell valid by leaving some moved vertices where refinement put them. It warned only: "N vertices it moved ... stay where refinement placed them instead (#946)." On a refined simplex
CubedSpherethose vertices sit off the inner sphere (#949, item 1). The warning did not say that they are off a wall, which wall, or what to do.Measured on development, vertices held back:
Now.
off the walls ['Lower']) and says that a condition or a surface on those walls sees them off the wall. The mesh already recorded which walls (_refinement_left_off_surface); that per-rank set is gathered over the ranks for the message. The held count is already global, so every rank reaches the gather.callback.remedy), and the warning appends it.CubedSphere(simplex=True)says that the vertices sit on a crease between two wall patches, that numElements=4 held none at refinements 1 and 2 (measured), and that simplex=False has no such crease.Measured message, numElements 3 at refinement 2: "... 21 vertices it moved, over the hierarchy's 3 levels, stay where refinement placed them instead, off the walls ['Lower']: a condition or a surface placed on those walls sees them off the wall (#946). CubedSphere(simplex=True) leaves them on a crease between two wall patches (#949). numElements=4 held none at refinements 1 and 2 (measured); simplex=False has no such crease."
Tolerances and coordinate matches
None: the count and the walls are the guard's own record.
Tests
tests/test_0949_refinement_says_which_walls_are_left_off.py, level 2, tier B:tests/parallel/test_1189matches the unchanged part of the message.Serial runs (macOS, 12-core Apple M4): the 31 test files that use a refinement callback or a spherical generator, 318 passed, 1 xfailed.
Review
The changes are a message and one gather on a path every rank takes. No numbers move.
Issue state
#949 item 1: the silence is fixed here; the placement stays open.
Underworld development team with AI support from Claude Code