Fix element damper evaluation on undefined variables (#32058)#32861
Open
BozoVazic wants to merge 1 commit intoidaholab:nextfrom
Open
Fix element damper evaluation on undefined variables (#32058)#32861BozoVazic wants to merge 1 commit intoidaholab:nextfrom
BozoVazic wants to merge 1 commit intoidaholab:nextfrom
Conversation
Author
|
@GiudGiud I've added fix for element damper - simillar as for nodal damper |
GiudGiud
previously approved these changes
Apr 30, 2026
test failures. looks like damping is not being applied
Contributor
|
Job Test, step Results summary on 7154c8d wanted to post the following: Framework test summaryCompared against 4e53b3b in job civet.inl.gov/job/3786076. Added tests
Modules test summaryCompared against 4e53b3b in job civet.inl.gov/job/3786076. No change |
Contributor
|
Job Documentation, step Docs: sync website on 7154c8d wanted to post the following: View the site here This comment will be updated on new commits. |
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.
closes #32058
Reason
Element dampers could still be evaluated on elements where a block-restricted variable to damp is undefined. In that case, element damper data such as solution/increment arrays can be empty, which leads to a MooseArray out-of-bounds access during damping evaluation.
Design
This mirrors the nodal damper fix.
The change adds an element-level guard in
ElementDamperto determine whether the damper variable is defined on the current element.ComputeElemDampingThreadthen:computeDamping()for dampers whose variable is undefined there.A scalar-variable
mooseAssertwas also added inElementDamper, analogous to the nodal-side guard.A regression test was added for the block-restricted elemental bounding-value damper case, and the existing element damper test issue tags were updated so the legacy tests keep
#7856while the new regression test is associated with#32058.Impact
This does not change the user-facing API. It fixes incorrect element damper evaluation for block-restricted variables and adds regression coverage for that case.
Validation was performed in both execution modes: