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

MatrixFree: improve assert #14005

Merged
merged 1 commit into from Jun 18, 2022
Merged

Conversation

peterrum
Copy link
Member

No description provided.

cell_vectorization_categories[cell] ==
cell_vectorization_categories[n_active_cells],
ExcMessage(
"Currently, all ghost cells need to have the same category. "
Copy link
Member

Choose a reason for hiding this comment

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

Can you add something like

Suggested change
"Currently, all ghost cells need to have the same category. "
"Currently, all ghost cells need to have the same category, "
"but got " + std::to_string(cell_vectorization_categories[cell]) +
" and " + std::to_string(cell_vectorization_categories[n_active_cells])
+ "."

I find these kinds of assertions tremendously easier during debugging if I see the value of the numbers that did not compare equal.

Copy link
Member Author

Choose a reason for hiding this comment

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

@kronbichler Done!

@bangerth bangerth merged commit 873d56d into dealii:master Jun 18, 2022
mkghadban pushed a commit to OpenFCST/dealii that referenced this pull request Sep 8, 2022
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

3 participants