Repository navigation
The rotated GAMG fallback's warning names its measured floor for a tight datum solve (UNFILED 36) - #1301
Merged
lmoresi merged 2 commits intoNov 24, 2026
Conversation
…ght datum solve (UNFILED 36) Without a registered hierarchy the rotated solve's velocity block falls back to GAMG, and the solver warns. With a wall-normal datum that fallback was measured to stall near 1e-10 relative on an annulus (4e-10 at cell size 0.2, 1.2e-10 at 0.1), where a registered hierarchy (custom FMG) reached about 2e-12; asked for less, it ran to its iteration cap and then failed. When the requested tolerance is below 1e-9 and a nonzero datum is registered, the warning now says so, as a measurement. Otherwise it is unchanged. test_1297: the floor sentence appears for a datum solve at 1e-10 (fails before this commit), and not for a datum solve at 1e-6 or a solve at 1e-10 without a datum. Underworld development team with AI support from Claude Code
Member
Author
|
Adversarial review, round 1 (head 8255662)
No findings. 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.
When a rotated free-slip solve falls back to GAMG (no registered multigrid hierarchy), asks for a tolerance below 1e-9, and carries a nonzero wall-normal datum, the existing fallback warning now states that fallback's measured floor. Part of UNFILED 36. It changes no solve.
The measurement
An annulus (0.5 to 1.0) with u·n = 0.1 cos 2θ on Upper and both walls rotated, serial (macOS, 12-core Apple M4):
Asked for less than the floor, the fallback runs to its cap and then fails. The FMG path, asked for 1e-12, did not finish in 10 minutes.
The change
The warning gains one sentence: with a datum, this fallback was measured to stall near 1e-10 relative, above the requested tolerance, and a registered hierarchy reached about 2e-12 on the same case. It is worded as a measurement, not a guarantee. It appears only when the tolerance is below 1e-9 and a nonzero datum is registered (
_rotated_freeslip_datumholds nonzero datums only). Ordinary runs see the warning as before.Tolerances and coordinate matches
Tests
tests/test_1297_rotated_gamg_fallback_names_its_floor.py:test_1014_stokes_multigridandtest_1159_thin_sheet_solve_takes_picard(the other tests that read the warning), with test_0052, all pass.check_test_coverage.pypasses.Underworld development team with AI support from Claude Code