Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an assertion. #16053

Merged
merged 2 commits into from Sep 28, 2023
Merged

Add an assertion. #16053

merged 2 commits into from Sep 28, 2023

Conversation

bangerth
Copy link
Member

The error in geodynamics/aspect#5398 would have been much more obvious with this assertion here. Might also have made the fix in geodynamics/aspect#5405 easier.

Comment on lines 523 to 525
Assert(size() == other.size(),
ExcMessage("One index set can only be a subset of another if they "
"describe index spaces of the same size."));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you print the numbers in the message? Similar to the case of AssertDimension?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

@bangerth
Copy link
Member Author

I pushed a new version of this patch. It also includes a fix for a place where we now trigger this assertion (yay assertions!) that I had accidentally introduced in #16034. Let's see whether that is the only place that I got wrong there.

@peterrum peterrum merged commit e8f5713 into dealii:master Sep 28, 2023
15 checks passed
@bangerth bangerth deleted the subset branch September 28, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants