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 two tests with complex PETSc #13960

Merged
merged 1 commit into from Jun 13, 2022

Conversation

kronbichler
Copy link
Member

Note that I do not have a complex PETSc version around locally, so this should be taken with a grain of salt.

@kronbichler
Copy link
Member Author

@tamiko
Copy link
Member

tamiko commented Jun 13, 2022

@kronbichler I will check this real quick on the tester.

PETScWrappers::SparseMatrix serial_matrix(n, n, n);

// PETSc requires us to set up the sparsity pattern ahead of construction
DynamicSparsityPattern dsp(n, n);
Copy link
Member

Choose a reason for hiding this comment

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

diff --git a/tests/petsc_complex/assemble_01.cc b/tests/petsc_complex/assemble_01.cc
index b055c8a93b..e31b5a3c49 100644
--- a/tests/petsc_complex/assemble_01.cc
+++ b/tests/petsc_complex/assemble_01.cc
@@ -19,6 +19,7 @@
 // combinations of PETScWrappers objects is correctly instantiated and works.
 
 #include <deal.II/lac/affine_constraints.h>
+#include <deal.II/lac/dynamic_sparsity_pattern.h>
 #include <deal.II/lac/full_matrix.h>
 #include <deal.II/lac/petsc_sparse_matrix.h>
 #include <deal.II/lac/petsc_vector.h>

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you!

@kronbichler kronbichler merged commit dbf6da2 into dealii:master Jun 13, 2022
@kronbichler kronbichler deleted the fix_petsc_complex_tests branch June 15, 2022 18:16
mkghadban pushed a commit to OpenFCST/dealii that referenced this pull request Sep 8, 2022
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