From 44138488eb0439e19b691a8b61d15d0eff548304 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 24 Feb 2014 20:27:05 +0000 Subject: [PATCH] Fix performance regression in serial. git-svn-id: https://svn.dealii.org/trunk@32545 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_renumbering.cc | 36 ++++++++++++++++---------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/deal.II/source/dofs/dof_renumbering.cc b/deal.II/source/dofs/dof_renumbering.cc index 3714e05e95..2e8f6497d8 100644 --- a/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/source/dofs/dof_renumbering.cc @@ -408,22 +408,30 @@ namespace DoFRenumbering dof_handler.locally_owned_dofs()); DoFTools::make_sparsity_pattern (dof_handler, csp, constraints); - // Create sparsity pattern from csp by transferring its indices to - // processor-local index space and doing Cuthill-McKee there - std::vector row_lengths(locally_owned.n_elements()); - for (unsigned int i=0; i row_lengths(locally_owned.n_elements()); + for (unsigned int i=0; i