From ccc9a8ffc8e6bdc2cc0a2c22ff1445bc5f5acbe8 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Mon, 20 Apr 2009 12:35:02 +0000 Subject: [PATCH] Use an intermediate CompressedSimpleSP when generating boost's graphs. Reduces the memory requirement by 30%, but the algorithms still use way too much memory to be really useful for large problems. git-svn-id: https://svn.dealii.org/trunk@18654 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/source/dofs/dof_renumbering.cc | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/deal.II/deal.II/source/dofs/dof_renumbering.cc b/deal.II/deal.II/source/dofs/dof_renumbering.cc index 9826b460d9..4435682ef7 100644 --- a/deal.II/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/deal.II/source/dofs/dof_renumbering.cc @@ -174,22 +174,23 @@ namespace DoFRenumbering types::property_map::type &graph_degree) { Assert (use_constraints == false, ExcNotImplemented()); - - std::vector dofs_on_this_cell; - dofs_on_this_cell.reserve (DoFTools::max_dofs_per_cell(dof_handler)); - typename DH::active_cell_iterator cell = dof_handler.begin_active(), - endc = dof_handler.end(); - for (; cell!=endc; ++cell) - { - const unsigned int dofs_per_cell = cell->get_fe().dofs_per_cell; - dofs_on_this_cell.resize (dofs_per_cell); - cell->get_dof_indices (dofs_on_this_cell); - - for (unsigned int i=0; i::vertex_iterator ui, ui_end; -- 2.39.5