From: Wolfgang Bangerth Date: Thu, 18 May 2000 13:16:06 +0000 (+0000) Subject: Move template function to respective .templates.h file. X-Git-Tag: v8.0.0~20514 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0632ffd0ec6d4656b2a8fa48f103c87c52a9939;p=dealii.git Move template function to respective .templates.h file. git-svn-id: https://svn.dealii.org/trunk@2891 0785d39b-7218-0410-832d-ea1e28bc413d --- 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