]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modified to use distribute_local_to_global for non quadratic matrices
authorBaerbel Jannsen <baerbel.janssen@gmail.com>
Mon, 22 Mar 2010 14:42:21 +0000 (14:42 +0000)
committerBaerbel Jannsen <baerbel.janssen@gmail.com>
Mon, 22 Mar 2010 14:42:21 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@20876 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/constraint_matrix.cc

index c5c25bbee40fdb90c5c530128114583a14c4c4d2..8485b6ea160ca133b9d55500db4f4f14ebdcb809 100644 (file)
@@ -35,6 +35,7 @@
 #include <lac/trilinos_block_vector.h>
 #include <lac/trilinos_sparse_matrix.h>
 #include <lac/trilinos_block_sparse_matrix.h>
+#include <lac/matrix_block.h>
 
 #include <algorithm>
 #include <numeric>
@@ -2372,6 +2373,7 @@ template void ConstraintMatrix::distribute_local_to_global<SparseMatrix<float>,V
  SparseMatrix<float>             &,
  Vector<double>                  &) const;
 
+
 MATRIX_FUNCTIONS(BlockSparseMatrix<double>, BlockVector<double>);
 MATRIX_FUNCTIONS(BlockSparseMatrix<float>,  BlockVector<float>);
 template void ConstraintMatrix::distribute_local_to_global<BlockSparseMatrix<float>,BlockVector<double> >
@@ -2437,4 +2439,16 @@ SPARSITY_FUNCTIONS(TrilinosWrappers::SparsityPattern);
 SPARSITY_FUNCTIONS(TrilinosWrappers::BlockSparsityPattern);
 #endif
 
+#define ONLY_MATRIX_FUNCTIONS(MatrixType) \
+  template void ConstraintMatrix::distribute_local_to_global<MatrixType > (\
+  const FullMatrix<double>        &, \
+  const std::vector<unsigned int> &, \
+  const std::vector<unsigned int> &, \
+  MatrixType                      &) const
+
+ONLY_MATRIX_FUNCTIONS(SparseMatrix<float>);
+ONLY_MATRIX_FUNCTIONS(SparseMatrix<double>);
+ONLY_MATRIX_FUNCTIONS(MatrixBlock<SparseMatrix<float> >);
+ONLY_MATRIX_FUNCTIONS(MatrixBlock<SparseMatrix<double> >);
+
 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.