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

Remove some unnecessary includes of grid_tools.h #13422

Merged
merged 5 commits into from Feb 22, 2022

Conversation

kronbichler
Copy link
Member

@kronbichler kronbichler commented Feb 20, 2022

Inspired by the fact that step-37 includes 626k lines of code once all headers are resolved as noted in #13420, this PR tries to avoid including grid_tools.h, which involves a huge amount of boost code. This is possible as there is no reference to those functions in any code, probably a left-over from times where we actually had implementations or data structures using that code. Now we are down to 500k lines of code. More importantly, we more clearly communicate the dependencies, rather than pulling in almost all our code.

@kronbichler
Copy link
Member Author

It's pretty interesting how many implicit include we have had before. Now it seems better (but I can't say for sure because we have too many test failures right now to find things reliably).

@tjhei
Copy link
Member

tjhei commented Feb 21, 2022

I agree with this patch, but we should probably add a changelog entry to the "incompatibilities" for this.

@bangerth
Copy link
Member

OK if you add the changelog entry @tjhei suggests.

I hope that we can eventually just do import dealii;, but then from all I've read and listened to regarding the C++20 module specification, I'm not confident this will actually ever happen :-(

@kronbichler
Copy link
Member Author

I added a changelog file as suggested by @tjhei.

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