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

Simplify IndexSet::add_index() #15536

Merged
merged 1 commit into from Jun 30, 2023
Merged

Conversation

kronbichler
Copy link
Member

When looking at the code in IndexSet::add_index(index) for #15535, I realized that the function body is equivalent to when we call IndexSet::add_range(index, index+1), except for one single check. Since we encourage adding many sorted indices at once anyway, we should not spend too much code here and simplify.

Related to #15398.

@bangerth bangerth merged commit 795b803 into dealii:master Jun 30, 2023
14 checks passed
@kronbichler kronbichler deleted the simplify_index_set branch August 10, 2023 16:38
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

2 participants