From 4ec02779c69bf8364f396b51c463bcf0dc35db19 Mon Sep 17 00:00:00 2001 From: Baerbel Jannsen Date: Mon, 22 Mar 2010 14:42:21 +0000 Subject: [PATCH] modified to use distribute_local_to_global for non quadratic matrices git-svn-id: https://svn.dealii.org/trunk@20876 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/constraint_matrix.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/deal.II/lac/source/constraint_matrix.cc b/deal.II/lac/source/constraint_matrix.cc index c5c25bbee4..8485b6ea16 100644 --- a/deal.II/lac/source/constraint_matrix.cc +++ b/deal.II/lac/source/constraint_matrix.cc @@ -35,6 +35,7 @@ #include #include #include +#include #include #include @@ -2372,6 +2373,7 @@ template void ConstraintMatrix::distribute_local_to_global,V SparseMatrix &, Vector &) const; + MATRIX_FUNCTIONS(BlockSparseMatrix, BlockVector); MATRIX_FUNCTIONS(BlockSparseMatrix, BlockVector); template void ConstraintMatrix::distribute_local_to_global,BlockVector > @@ -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 (\ + const FullMatrix &, \ + const std::vector &, \ + const std::vector &, \ + MatrixType &) const + +ONLY_MATRIX_FUNCTIONS(SparseMatrix); +ONLY_MATRIX_FUNCTIONS(SparseMatrix); +ONLY_MATRIX_FUNCTIONS(MatrixBlock >); +ONLY_MATRIX_FUNCTIONS(MatrixBlock >); + DEAL_II_NAMESPACE_CLOSE -- 2.39.5