Repository navigation
BoxInternalBoundary returns a point onto the wall it left by, that coordinate only - #1253
Merged
Merged
Conversation
…ordinate only Its return_coords_to_bounds set every coordinate of an out-of-bounds point to the bound it had crossed, and in 3-D tested the y column against the z bounds. It now clamps each axis onto its own bound, as StructuredQuadBox does (test_1246, a box with distinct bounds per axis). 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.
BoxInternalBoundary'sreturn_coords_to_boundshad two faults:coords[x00s, :] = minCoords[0]). A point at (−0.25, 0.5) came back as (0, 0).Any point it clamped came back in the wrong place: a semi-Lagrangian departure point, or a swarm particle that left the box.
It now clamps each axis onto its own bound and leaves the other coordinates alone, as
StructuredQuadBoxdoes. An unstructured simplex box does the same after #1252. No issue was filed; this body is the report. It was found while reading the box clamps for #1252.Test
test_1246uses a 2-D box of 2 × 1 and a 3-D box of 2 × 1 × 3, so that every bound is distinct. It moves a point 0.25 outside each wall in turn. Each must return onto that wall with its other coordinates unchanged, and a point inside must be left alone.The other tests that build a
BoxInternalBoundarypass:test_0001(meshes),0502,1069,1103,1184and1185, 67 passed withtest_1246's file andtest_0001counted separately (19 passed).Measured by H7 (the stress-history desk, a Claude session on a 96-thread Linux workstation: Intel Xeon Gold 6240R, MPICH).
Checklist (UW3 Style Charter)
level_1andtier_amarkers; it fails on development (S8)Underworld development team with AI support from Claude Code