From: bangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d> Date: Fri, 25 Jan 2008 16:23:01 +0000 (+0000) Subject: Also instantiate VectorMemory classes for PETSc vectors. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e27c181b9999225a2ede34ba34a20af8e4391954;p=dealii-svn.git Also instantiate VectorMemory classes for PETSc vectors. git-svn-id: https://svn.dealii.org/trunk@15685 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/vector_memory.cc b/deal.II/lac/source/vector_memory.cc index 4aef81ff40..4d322930a4 100644 --- a/deal.II/lac/source/vector_memory.cc +++ b/deal.II/lac/source/vector_memory.cc @@ -15,6 +15,10 @@ #include <lac/vector_memory.h> #include <lac/vector.h> #include <lac/block_vector.h> +#include <lac/petsc_vector.h> +#include <lac/petsc_block_vector.h> +#include <lac/petsc_parallel_vector.h> +#include <lac/petsc_parallel_block_vector.h> DEAL_II_NAMESPACE_OPEN @@ -76,9 +80,23 @@ template <typename VECTOR> Threads::ThreadMutex GrowingVectorMemory<VECTOR>::mutex; - - +// ------------------------------------------------------------- +// explicit instantiations #include "vector_memory.inst" +#ifdef DEAL_II_USE_PETSC + template class VectorMemory<PETScWrappers::Vector>; + template class GrowingVectorMemory<PETScWrappers::Vector>; + + template class VectorMemory<PETScWrappers::BlockVector>; + template class GrowingVectorMemory<PETScWrappers::BlockVector>; + + template class VectorMemory<PETScWrappers::MPI::Vector>; + template class GrowingVectorMemory<PETScWrappers::MPI::Vector>; + + template class VectorMemory<PETScWrappers::MPI::BlockVector>; + template class GrowingVectorMemory<PETScWrappers::MPI::BlockVector>; +#endif + DEAL_II_NAMESPACE_CLOSE