]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also instantiate VectorMemory classes for PETSc vectors.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 25 Jan 2008 16:23:01 +0000 (16:23 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 25 Jan 2008 16:23:01 +0000 (16:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@15685 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/vector_memory.cc

index 4aef81ff40c8c52c7b95051ab6aa24edb2011dc3..4d322930a42c1e9e3f763f38267d18210cd910fa 100644 (file)
 #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

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.