From 574521e8ddde81897290e63a6379cca39c370edd Mon Sep 17 00:00:00 2001 From: young Date: Fri, 11 Oct 2013 13:29:19 +0000 Subject: [PATCH] Instant. two functions with complex numbers. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31204 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/constraint_matrix.cc | 6 ++++++ deal.II/source/lac/full_matrix.cc | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/deal.II/source/lac/constraint_matrix.cc b/deal.II/source/lac/constraint_matrix.cc index 4c1a7e8fac..dcd6283967 100644 --- a/deal.II/source/lac/constraint_matrix.cc +++ b/deal.II/source/lac/constraint_matrix.cc @@ -1875,4 +1875,10 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix); #include "constraint_matrix.inst" +// This is needed if PETSc was compiled with complex, though, it may +// be used elsewhere too. +#ifdef PETSC_USE_COMPLEX +template void dealii::ConstraintMatrix::distribute > >(dealii::Vector >&) const; +#endif // PETSC_USE_COMPLEX + DEAL_II_NAMESPACE_CLOSE diff --git a/deal.II/source/lac/full_matrix.cc b/deal.II/source/lac/full_matrix.cc index 92bab17377..9ac45664ba 100644 --- a/deal.II/source/lac/full_matrix.cc +++ b/deal.II/source/lac/full_matrix.cc @@ -21,6 +21,12 @@ DEAL_II_NAMESPACE_OPEN #include "full_matrix.inst" +// This is needed if PETSc was compiled with complex, though, it may +// be used elsewhere too. +//#ifdef PETSC_USE_COMPLEX +template void dealii::FullMatrix::vmult >(dealii::Vector >&, dealii::Vector > const&, bool) const; +//#endif // PETSC_USE_COMPLEX + // do a few functions that currently don't fit the scheme because they have // two template arguments that need to be different (the case of same // arguments is covered by the default copy constructor and copy operator that -- 2.39.5