]> https://gitweb.dealii.org/ - dealii.git/commitdiff
move instantiation of MatrixTools::apply_boundary_values() to inst.in file
authorDenis Davydov <davydden@gmail.com>
Sat, 27 Feb 2016 20:41:25 +0000 (21:41 +0100)
committerDenis Davydov <davydden@gmail.com>
Sat, 27 Feb 2016 21:29:10 +0000 (22:29 +0100)
source/numerics/matrix_tools.cc
source/numerics/matrix_tools.inst.in

index 28f784333dc2580626d8ea1d7ad333ed2082e6f1..a03a48fc6b1040b859ac10efa62b954cac9fa8b5 100644 (file)
@@ -2928,54 +2928,5 @@ namespace MatrixTools
 // explicit instantiations
 #include "matrix_tools.inst"
 
-namespace MatrixTools
-{
-  template
-  void
-  apply_boundary_values<double> (const std::map<types::global_dof_index,double> &boundary_values,
-                                 SparseMatrix<double>  &matrix,
-                                 Vector<double>   &solution,
-                                 Vector<double>   &right_hand_side,
-                                 const bool        eliminate_columns);
-
-  template
-  void
-  apply_boundary_values<long double> (const std::map<types::global_dof_index,long double> &boundary_values,
-                                      SparseMatrix<long double>  &matrix,
-                                      Vector<long double>   &solution,
-                                      Vector<long double>   &right_hand_side,
-                                      const bool        eliminate_columns);
-
-  template
-  void
-  apply_boundary_values<float> (const std::map<types::global_dof_index,float> &boundary_values,
-                                SparseMatrix<float>  &matrix,
-                                Vector<float>   &solution,
-                                Vector<float>   &right_hand_side,
-                                const bool        eliminate_columns);
-
-  template
-  void
-  apply_boundary_values<long double> (const std::map<types::global_dof_index,long double> &boundary_values,
-                                      BlockSparseMatrix<long double>  &matrix,
-                                      BlockVector<long double>   &solution,
-                                      BlockVector<long double>   &right_hand_side,
-                                      const bool        eliminate_columns);
-
-  template
-  void
-  apply_boundary_values<double> (const std::map<types::global_dof_index,double> &boundary_values,
-                                 BlockSparseMatrix<double>  &matrix,
-                                 BlockVector<double>   &solution,
-                                 BlockVector<double>   &right_hand_side,
-                                 const bool        eliminate_columns);
-  template
-  void
-  apply_boundary_values<float> (const std::map<types::global_dof_index,float> &boundary_values,
-                                BlockSparseMatrix<float>  &matrix,
-                                BlockVector<float>   &solution,
-                                BlockVector<float>   &right_hand_side,
-                                const bool        eliminate_columns);
-}
 
 DEAL_II_NAMESPACE_CLOSE
index 8787c146307f8c8c025a8a24db117b2b4032bd2c..0e7329057d04a72d5ce88e1909a1029406dd11b4 100644 (file)
@@ -23,6 +23,23 @@ for (number: REAL_SCALARS)
        Vector<number>     &local_rhs,
        const bool          eliminate_columns);
 
+    template
+      void MatrixTools::apply_boundary_values
+      (const std::map<types::global_dof_index,number> &boundary_values,
+       SparseMatrix<number>  &matrix,
+       Vector<number>   &solution,
+       Vector<number>   &right_hand_side,
+       const bool        eliminate_columns);
+       
+    template
+      void MatrixTools::apply_boundary_values 
+      (const std::map<types::global_dof_index,number> &boundary_values,
+       BlockSparseMatrix<number>  &matrix,
+       BlockVector<number>   &solution,
+       BlockVector<number>   &right_hand_side,
+       const bool        eliminate_columns);
+       
+
   }
 
 for (scalar: REAL_SCALARS; deal_II_dimension : DIMENSIONS; deal_II_space_dimension :  SPACE_DIMENSIONS)

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.