Repository navigation
Conversation
add_dirichlet_bc((None, None), "Left") named no component to fix. It was accepted, then failed at the solve inside SNES_Stokes_SaddlePt's discretisation set-up with "IndexError: Out of bounds on buffer access", on any boundary, a plain wall included; a natural (None, None) failed the same way. add_condition now refuses a condition with no component set, when it is added, naming the boundary and saying how to set one component or drop the condition. A condition setting at least one component is unchanged. Underworld development team with AI support from Claude Code
This branch has not been deployed
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 fix for a finding with no issue (UNFILED 46 in the dev hub's list; found in the review of #1285). Review: H1, the session that reviews pull requests and runs the parallel tests on a 96-thread Linux workstation (single system image; Intel Xeon Gold 6240R, AVX-512; MPICH).
The failure
add_dirichlet_bc((None, None), "Left")names no component to fix. It was accepted, and the solve then failed insideSNES_Stokes_SaddlePt._setup_discretisationwith:This happened on any boundary: a plain wall with no fault, and a fault side alike. A natural condition
add_natural_bc((None, None), "Left")failed the same way.The change
add_conditionrefuses a condition whose component list is empty, as soon as the list is built, for essential and natural conditions alike. Everyadd_*_bcgoes through it. The message names the boundary and the value, and gives the fix:A condition that sets at least one component, such as
(None, 0.0)or(None, None, 0.0)(used in test_1095 and in the 3-D shear example), is unchanged.Test
tests/test_1301_an_all_free_essential_condition_is_refused.py:(None, None)as a tuple, essentialadd_dirichlet_bc[None, None]as a list, essential(None, None), natural(None, 0.0)on two walls, with the others fixedOn development, 2 of the first three tests fail; the natural case was added later. All 4 pass on the branch.
Regression
The 217 serial test files that add a condition (
add_dirichlet_bc,add_natural_bc,add_essential_bcoradd_condition): 1789 passed, 6 skipped, 1 xpassed, with no failures.Underworld development team with AI support from Claude Code