]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow this to work in real mode too.
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Mar 2014 11:26:13 +0000 (11:26 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 27 Mar 2014 11:26:13 +0000 (11:26 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32704 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/constraint_matrix.cc

index 17c879a6ee66bf5669a00c3ab0d15b45191601f0..583c17ad3073ab9e93ba9d3c5e9c7256b67db732 100644 (file)
@@ -1975,11 +1975,18 @@ ONLY_MATRIX_FUNCTIONS(TrilinosWrappers::BlockSparseMatrix);
 #endif
 
 #ifdef DEAL_II_WITH_PETSC
+#ifndef PETSC_USE_COMPLEX
+ONLY_MATRIX_FUNCTIONS(PETScWrappers::SparseMatrix);
+ONLY_MATRIX_FUNCTIONS(PETScWrappers::BlockSparseMatrix);
+ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::SparseMatrix);
+ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
+#else
 COMPLEX_ONLY_MATRIX_FUNCTIONS(PETScWrappers::SparseMatrix);
 COMPLEX_ONLY_MATRIX_FUNCTIONS(PETScWrappers::BlockSparseMatrix);
 COMPLEX_ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::SparseMatrix);
 COMPLEX_ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 #endif
+#endif
 
 #include "constraint_matrix.inst"
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.