]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add explicit instantiations in constraint_matrix.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 20 Dec 2013 16:49:16 +0000 (16:49 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 20 Dec 2013 16:49:16 +0000 (16:49 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_paralution@32071 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/paralution_sparse_matrix.h
deal.II/source/lac/constraint_matrix.cc

index ebc1e123084ba2eeb399234b681f649c5babc8d0..6eca8f0ae2d76db045da3e2cd1a449603ec0a226 100644 (file)
@@ -121,7 +121,7 @@ namespace ParalutionWrappers
     void clear();
 
     /**
-     * This function convert the underlying SparseMatrix to
+     * This function converts the underlying SparseMatrix to
      * Paralution::LocalMatrix. This function frees the SparseMatrix.
      */
     void convert_to_paralution_csr();
index 9541a369ae219f0fa2c6703201492c4702e3abd1..c213add37367743b2232c9e5663fc2eb6311bef7 100644 (file)
@@ -42,6 +42,7 @@
 #include <deal.II/lac/trilinos_block_sparse_matrix.h>
 #include <deal.II/lac/matrix_block.h>
 #include <deal.II/lac/paralution_vector.h>
+#include <deal.II/lac/paralution_sparse_matrix.h>
 
 #include <algorithm>
 #include <numeric>
@@ -1830,6 +1831,13 @@ MATRIX_VECTOR_FUNCTIONS(TrilinosWrappers::SparseMatrix, TrilinosWrappers::MPI::V
 BLOCK_MATRIX_VECTOR_FUNCTIONS(TrilinosWrappers::BlockSparseMatrix, TrilinosWrappers::MPI::BlockVector);
 #endif
 
+#ifdef DEAL_II_WITH_PARALUTION
+MATRIX_FUNCTIONS(ParalutionWrappers::SparseMatrix<float>);
+MATRIX_FUNCTIONS(ParalutionWrappers::SparseMatrix<double>);
+MATRIX_VECTOR_FUNCTIONS(ParalutionWrappers::SparseMatrix<float>, ParalutionWrappers::Vector<float>);
+MATRIX_VECTOR_FUNCTIONS(ParalutionWrappers::SparseMatrix<double>, ParalutionWrappers::Vector<double>);
+#endif
+
 
 #define SPARSITY_FUNCTIONS(SparsityType) \
   template void ConstraintMatrix::add_entries_local_to_global<SparsityType> (\
@@ -1899,6 +1907,11 @@ ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::SparseMatrix);
 ONLY_MATRIX_FUNCTIONS(PETScWrappers::MPI::BlockSparseMatrix);
 #endif
 
+#ifdef DEAL_II_WITH_PARALUTION
+ONLY_MATRIX_FUNCTIONS(ParalutionWrappers::SparseMatrix<float>);
+ONLY_MATRIX_FUNCTIONS(ParalutionWrappers::SparseMatrix<double>);
+#endif
+
 #include "constraint_matrix.inst"
 
 // allocate scratch data. Cannot use the generic template instantiation

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.