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
Fix two tests with complex PETSc #13960
Conversation
Test failures see https://cdash.dealii.43-1.org/test/14719224 and https://cdash.dealii.43-1.org/test/14721238 |
@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); |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
d59ffb2
to
9124732
Compare
Fix two tests with complex PETSc
Note that I do not have a complex PETSc version around locally, so this should be taken with a grain of salt.