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

Fix SolutionTransfer to properly compress() vectors. #15577

Merged
merged 3 commits into from Jul 2, 2023

Conversation

bangerth
Copy link
Member

@bangerth bangerth commented Jul 2, 2023

The SolutionTransfer class writes into output vectors, but does
not call compress() on them. This is of no consequence for deal.II
vectors for which this class is mostly used (in contrast to the
parallel::distributed::SolutionTransfer class), but leads to awkward
downstream failures with, for example, PETSc vectors.

Fixes #15574.

@stefanozampini
Copy link
Contributor

@bangerth note that recent versions of PETSc compiled in debug mode will actually complain about the unassembled (ie. VecSetValues called without later assembly) status of the vector. I suggest to use it in CI to catch this and other kind of possible problems , since this is what a debug version does.

@bangerth
Copy link
Member Author

bangerth commented Jul 2, 2023

@tamiko Do we use debug or release versions of PETSc in our CI?

@bangerth
Copy link
Member Author

bangerth commented Jul 2, 2023

Tests cleanly.

@masterleinad masterleinad merged commit c19ed28 into dealii:master Jul 2, 2023
14 checks passed
@bangerth bangerth deleted the sol-trans-2 branch July 2, 2023 21:18
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.

SolutionTransfer and PETScWrappers::MPI::Vector don't go together
4 participants