From 1e70b8968be38605404b865d659aaa17b1775feb Mon Sep 17 00:00:00 2001 From: young Date: Thu, 27 Mar 2014 11:26:13 +0000 Subject: [PATCH] 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 --- deal.II/source/lac/constraint_matrix.cc | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- 2.39.5