From: young Date: Thu, 27 Mar 2014 11:26:13 +0000 (+0000) Subject: Allow this to work in real mode too. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e70b8968be38605404b865d659aaa17b1775feb;p=dealii-svn.git Allow this to work in real mode too. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32704 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/constraint_matrix.cc b/deal.II/source/lac/constraint_matrix.cc index 17c879a6ee..583c17ad30 100644 --- a/deal.II/source/lac/constraint_matrix.cc +++ b/deal.II/source/lac/constraint_matrix.cc @@ -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"