From 2c21bed1d28df74bd90e42a761733415a8b33913 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 19 Jan 2009 02:02:25 +0000 Subject: [PATCH] Undo Martin's patch 18223 for a moment since it leads to linker errors about an undefined function. git-svn-id: https://svn.dealii.org/trunk@18244 0785d39b-7218-0410-832d-ea1e28bc413d --- .../include/numerics/vectors.templates.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/deal.II/deal.II/include/numerics/vectors.templates.h b/deal.II/deal.II/include/numerics/vectors.templates.h index 6f4616b6d3..c347cb5fa4 100644 --- a/deal.II/deal.II/include/numerics/vectors.templates.h +++ b/deal.II/deal.II/include/numerics/vectors.templates.h @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -461,18 +460,12 @@ void VectorTools::project (const Mapping &mapping, // set up mass matrix and right hand side Vector vec (dof.n_dofs()); - SparsityPattern sparsity; - - // use csp to consume less memory and to - // still be fast - { - CompressedSimpleSparsityPattern csp (dof.n_dofs(), dof.n_dofs()); - DoFTools::make_sparsity_pattern (dof, csp); - constraints.condense(csp); - - sparsity.copy_from (csp); - } - + SparsityPattern sparsity(dof.n_dofs(), + dof.n_dofs(), + dof.max_couplings_between_dofs()); + DoFTools::make_sparsity_pattern (dof, sparsity); + constraints.condense (sparsity); + SparseMatrix mass_matrix (sparsity); Vector tmp (mass_matrix.n()); -- 2.39.5