]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Generate template instantiations for all currently available vectors.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Oct 2008 20:10:09 +0000 (20:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Oct 2008 20:10:09 +0000 (20:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@17330 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/fe_field_function.cc
deal.II/deal.II/source/numerics/fe_field_function.inst.in [new file with mode: 0644]

index d068d0b50270d1f77a78f4333ab1c0a1e85842f1..c4a62882c41189288fb19e4f8fa8163fa4865b78 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id: function_parser.h 14594 2007-03-22 20:17:41Z bangerth $
 //    Version: $Name$
 //
-//    Copyright (C) 2007 by the deal.II authors
+//    Copyright (C) 2007, 2008 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
 #include <lac/block_vector.h>
 #include <lac/petsc_vector.h>
 #include <lac/petsc_block_vector.h>
+#include <lac/trilinos_vector.h>
+#include <lac/trilinos_block_vector.h>
 
 DEAL_II_NAMESPACE_OPEN
 
 namespace Functions
 {
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                DoFHandler<deal_II_dimension>, 
-                                Vector<double> >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                DoFHandler<deal_II_dimension>, 
-                                BlockVector<double> >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                MGDoFHandler<deal_II_dimension>, 
-                                Vector<double> >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                MGDoFHandler<deal_II_dimension>, 
-                                BlockVector<double> >;
-
-#ifdef DEAL_II_USE_PETSC
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                DoFHandler<deal_II_dimension>, 
-                                PETScWrappers::Vector >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                DoFHandler<deal_II_dimension>, 
-                                PETScWrappers::BlockVector >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                MGDoFHandler<deal_II_dimension>, 
-                                PETScWrappers::Vector >;
-
-  template class FEFieldFunction<deal_II_dimension, 
-                                MGDoFHandler<deal_II_dimension>, 
-                                PETScWrappers::BlockVector >;
-
-#endif
-  
+#  include "fe_field_function.inst"  
 }
 
 DEAL_II_NAMESPACE_CLOSE
diff --git a/deal.II/deal.II/source/numerics/fe_field_function.inst.in b/deal.II/deal.II/source/numerics/fe_field_function.inst.in
new file mode 100644 (file)
index 0000000..6559131
--- /dev/null
@@ -0,0 +1,24 @@
+//---------------------------------------------------------------------------
+//    $Id: function_parser.h 14594 2007-03-22 20:17:41Z bangerth $
+//    Version: $Name$
+//
+//    Copyright (C) 2007, 2008 by the deal.II authors
+//
+//    This file is subject to QPL and may not be  distributed
+//    without copyright and license information. Please refer
+//    to the file deal.II/doc/license.html for the  text  and
+//    further information on this license.
+//
+//---------------------------------------------------------------------------
+
+
+for (VECTOR : SERIAL_VECTORS)
+{
+  template class FEFieldFunction<deal_II_dimension, 
+                                DoFHandler<deal_II_dimension>, 
+                                VECTOR>;
+
+  template class FEFieldFunction<deal_II_dimension, 
+                                MGDoFHandler<deal_II_dimension>, 
+                                VECTOR>;
+}

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.