GenericProjector fix#2001
Merged
Merged
Conversation
I'm not sure why this never came up before, but this fixes an assert/crash for me when trying to call System::project_solution() on a System with FIRST, LAGRANGE variables. Apparently we don't have any tests for that case, but JxW is definitely needed so it should be pre-requested.
Member
|
Looks like this ought to trigger with non-LAGRANGE and/or infinite elements, of high enough order (or as in your case, low enough continuity) to have element-interior DoFs and/or side/edge DoFs when adaptively coarsening, which don't fall into the "forget FE stuff we can just copy DoFs" code path that 0th order discontinuous elements can use. I think I'll merge this fix as-is, since I've been delaying it long enough (and since it appears to be the same fix I decided on independently during the #1938 process), but not understanding the problem is bugging the hell out of me. |
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.
This fixes an
Assertion !calculations_started || calculate_dxy' failedassert/crash for me, but I'm not sure it's the best fix. A simple test code that demonstrates the problem is attached. Note that it seems like you have to have at least two variables on the system in order to trigger the crash, I did not play around with exactly what combinations of variables would trigger it, however.cc: @roystgnr
Stack trace is below