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

Avoid using two temporary vectors when not necessary. #16454

Merged
merged 1 commit into from Jan 11, 2024

Conversation

bangerth
Copy link
Member

While looking at https://github.com/dealii/dealii/pull/16290/files/22fd785bc3c0cda5b3425969537c96caa0258326#diff-e6a16110ee8ac3a505be6f066978f72c7d553c75f863760eb17a48ccd0535640, I was checking the existing code and realized that that could be done better.

This is the place where DataOut copies a solution vector into its own, internally stored, vector. By default, this is done using two temporary vectors, but if the scalar types in question match, we can do this with just one temporary vector I believe.

@drwells drwells merged commit bfc8f4b into dealii:master Jan 11, 2024
15 checks passed
@bangerth bangerth deleted the pow-6 branch January 11, 2024 17:13
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