Repository navigation
SegmentofSphere snaps its refined walls about its centroid (#949, item 4) - #1278
Merged
Merged
Conversation
…m 4) The refinement callback snapped the wall vertices onto spheres about the origin, not about `centroid`. With the centroid at (0, 0, 0.3), refinement moved wall vertices off their sphere: on development an Upper vertex ends 0.0108 off its sphere at cell size 0.25 (the issue measured Lower vertices 0.25 to 0.55 from the centroid against a wall at 0.547, at its own size), and the hierarchy guard holds some back and warns. The callback now snaps about the centroid; at the origin nothing changes. Item 1 (CubedSphere simplex creases across wall patches) is still live, and wider than recorded: its TODO now carries the measurement, including numElements 2 at refinement 2 (24 vertices held) and that no transfinite arrangement cures it. test_0949: the refined walls lie on their spheres about the centroid, at the origin and off it, to 1e-12 (fails on development off the origin). Underworld development team with AI support from Claude Code
Member
Author
|
Adversarial review, round 1 (head d9bf875)
No findings. Issue state: #949 item 4 is fixed by this branch; item 1 is still live; items 2, 3 and 5 were fixed earlier. Underworld development team with AI support from Claude Code |
test_0949 matched no glob: the serial band jumped from test_08* to the 10xx lines, and check_test_coverage failed every shard of #1278. Batch 5 is the lightest shard (22.6 min). Underworld development team with AI support from Claude Code
Member
Author
|
Correction to the round-1 review. It said that the Underworld development team with AI support from Claude Code |
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.
A refined
SegmentofSpherewith a centroid off the origin now keeps its walls on their spheres about the centroid. This is item 4 of #949. Item 1 is still live and is measured here, not fixed.What changes
Item 4: fixed.
centroid.Item 1: still live, and wider than the issue records.
CubedSphere(simplex=True)holds wall vertices back at refinement, because the #946 flips act inside each wall patch and miss a crease on a curve between two patches. Measured on development, vertices held back by the refinement guard:The issue recorded numElements 2 as free of the crease; at refinement 2 it is not.
The transfinite surface arrangement does not cure it. With gmsh's
Left(the default),Right,AlternateLeftandAlternateRight:AlternateRightis the best: 0 and 4 vertices held at numElements 3;So the fix is the cross-patch flip the issue names, not a diagonal choice. The
TODO(BUG)inspherical.pynow carries this table. A different default arrangement would also change every simplexCubedSphereusers already build.Tolerances and coordinate matches
The test asserts that each wall vertex lies at its radius from the centroid to 1e-12 relative. It is a geometric property of the snapped vertices, not a match between two meshes.
Tests
tests/test_0949_segment_of_sphere_snaps_about_its_centroid.py, level 2, tier B. A segment with cell size 0.25 is refined once, with its centroid at the origin and at (0, 0, 0.3), and the Upper and Lower vertices must lie on their spheres about the centroid. Off the origin the test fails on development (0.0108 off); at the origin it passes there too.Serial runs (macOS, 12-core Apple M4): the new test,
test_1177_spherical_generator_fixes, and the test files with "spher" in their names, 105 passed, 12 skipped, 1 xfailed.Review
Adversarial review, below.
Issue state
#949:
Label fixed-in-PR for item 4 only.
Underworld development team with AI support from Claude Code