From 12aed7089483104fee65df1ec8602f392c5ea1f8 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 23 Oct 2000 09:39:45 +0000 Subject: [PATCH] Fix some kind of serious bug: the variable was not initialized, the function thus did nothing... git-svn-id: https://svn.dealii.org/trunk@3456 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_renumbering.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/dofs/dof_renumbering.cc b/deal.II/deal.II/source/dofs/dof_renumbering.cc index 1c1d278519..a10992d65e 100644 --- a/deal.II/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/deal.II/source/dofs/dof_renumbering.cc @@ -726,7 +726,12 @@ template void DoFRenumbering::random (DoFHandler &dof_handler) { - vector new_indices (dof_handler.n_dofs()); + const unsigned int n_dofs = dof_handler.n_dofs(); + + vector new_indices (n_dofs); + for (unsigned i=0; i