]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use generic instantiation procedure for selecting vectors in solution transfer.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Dec 2012 11:07:02 +0000 (11:07 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 19 Dec 2012 11:07:02 +0000 (11:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@27826 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/numerics/solution_transfer.cc
deal.II/source/numerics/solution_transfer.inst.in

index b96cab0b4ddd5818d971bc1ef4b3b79355a05b8f..a36bb8ab1a71f26dd39df9130b835c163c79f165 100644 (file)
 #include <deal.II/grid/tria_iterator.h>
 #include <deal.II/fe/fe.h>
 #include <deal.II/lac/vector.h>
+#include <deal.II/lac/parallel_vector.h>
 #include <deal.II/lac/petsc_vector.h>
 #include <deal.II/lac/trilinos_vector.h>
 #include <deal.II/lac/block_vector.h>
+#include <deal.II/lac/parallel_block_vector.h>
 #include <deal.II/lac/petsc_block_vector.h>
 #include <deal.II/lac/trilinos_block_vector.h>
 #include <deal.II/numerics/solution_transfer.h>
index e50bb475eaca985d1678ee6bbed136cc7115beec..10bd981e4f8bc2b8fd8f27aa073ea4ad436da127 100644 (file)
 //
 //---------------------------------------------------------------------------
 
-for (deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS)
+for (VEC : SERIAL_VECTORS; deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS)
   {
 #if deal_II_dimension <= deal_II_space_dimension
-
-    template class SolutionTransfer<deal_II_dimension, Vector<float>, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, Vector<double>, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, Vector<float>, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, Vector<double>, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-    template class SolutionTransfer<deal_II_dimension, BlockVector<float>, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, BlockVector<double>, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, BlockVector<float>, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, BlockVector<double>, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-
-#ifdef DEAL_II_USE_PETSC
-    template class SolutionTransfer<deal_II_dimension, PETScWrappers::Vector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, PETScWrappers::Vector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-    template class SolutionTransfer<deal_II_dimension, PETScWrappers::BlockVector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, PETScWrappers::BlockVector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-#endif
-
-#ifdef DEAL_II_USE_TRILINOS
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::Vector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::Vector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::BlockVector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::BlockVector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::MPI::Vector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::MPI::Vector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::MPI::BlockVector, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-    template class SolutionTransfer<deal_II_dimension, TrilinosWrappers::MPI::BlockVector, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
-#endif
-
+    template class SolutionTransfer<deal_II_dimension, VEC, DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
+    template class SolutionTransfer<deal_II_dimension, VEC, hp::DoFHandler<deal_II_dimension, deal_II_space_dimension> >;
 #endif
 }

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.