From af6a9962496597809a34b8da8ecdc09f5cfd3203 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 18 May 2000 13:16:06 +0000 Subject: [PATCH] Move template function to respective .templates.h file. git-svn-id: https://svn.dealii.org/trunk@2891 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/dofs/dof_constraints.templates.h | 87 +++++++++++++++++++ .../deal.II/source/dofs/dof_constraints.cc | 86 ------------------ 2 files changed, 87 insertions(+), 86 deletions(-) diff --git a/deal.II/deal.II/include/dofs/dof_constraints.templates.h b/deal.II/deal.II/include/dofs/dof_constraints.templates.h index 6f74e0c624..ed8ea1a861 100644 --- a/deal.II/deal.II/include/dofs/dof_constraints.templates.h +++ b/deal.II/deal.II/include/dofs/dof_constraints.templates.h @@ -17,6 +17,93 @@ #include + +template +void ConstraintMatrix::condense (BlockSparsityPattern &sparsity) const +{ + Assert (false, ExcInternalError()); +/* + Assert (sorted == true, ExcMatrixNotClosed()); + Assert (sparsity.is_compressed() == false, ExcMatrixIsClosed()); + Assert (sparsity.n_rows() == sparsity.n_cols(), + ExcMatrixNotSquare()); + Assert (sparsity.get_column_indices() == sparsity.get_row_indices(), + ExcMatrixNotSquare()); + + // store for each index whether it + // must be distributed or not. If entry + // is -1, no distribution is necessary. + // otherwise, the number states which + // line in the constraint matrix handles + // this index + vector distribute(sparsity.n_rows(), -1); + + for (unsigned int c=0; c(c); + + int n_rows = sparsity.n_rows(); + for (int row=0; row void ConstraintMatrix::condense (const SparseMatrix &uncondensed, diff --git a/deal.II/deal.II/source/dofs/dof_constraints.cc b/deal.II/deal.II/source/dofs/dof_constraints.cc index c6d6aa4ff5..f3d44b2ab8 100644 --- a/deal.II/deal.II/source/dofs/dof_constraints.cc +++ b/deal.II/deal.II/source/dofs/dof_constraints.cc @@ -360,92 +360,6 @@ void ConstraintMatrix::condense (SparsityPattern &sparsity) const -template -void ConstraintMatrix::condense (BlockSparsityPattern &sparsity) const -{ - Assert (false, ExcInternalError()); -/* - Assert (sorted == true, ExcMatrixNotClosed()); - Assert (sparsity.is_compressed() == false, ExcMatrixIsClosed()); - Assert (sparsity.n_rows() == sparsity.n_cols(), - ExcMatrixNotSquare()); - Assert (sparsity.get_column_indices() == sparsity.get_row_indices(), - ExcMatrixNotSquare()); - - // store for each index whether it - // must be distributed or not. If entry - // is -1, no distribution is necessary. - // otherwise, the number states which - // line in the constraint matrix handles - // this index - vector distribute(sparsity.n_rows(), -1); - - for (unsigned int c=0; c(c); - - int n_rows = sparsity.n_rows(); - for (int row=0; row