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

Boundary values: Use alias fe instead of cell->get_fe() #13096

Merged
merged 1 commit into from Dec 17, 2021

Conversation

kronbichler
Copy link
Member

@kronbichler kronbichler commented Dec 17, 2021

Looking at the code for VectorTools::interpolate_boundary_values, I observed that we introduce an alias const FiniteElement<dim> &fe = cell->get_fe() in several places, but do not actually use it. As the code gets more readable by using it, and because it appears in profilers, I decided to switch to it.

Copy link
Member

@tjhei tjhei left a comment

Choose a reason for hiding this comment

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

Looks good. I assume you can see it in the profiler because get_fe is not an inline function?

@tjhei tjhei merged commit 5cc5007 into dealii:master Dec 17, 2021
@kronbichler kronbichler deleted the use_alias_fe branch May 11, 2022 20:06
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