From: Wolfgang Bangerth Date: Mon, 23 Oct 2000 09:39:45 +0000 (+0000) Subject: Fix some kind of serious bug: the variable was not initialized, the X-Git-Tag: v8.0.0~19976 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a3fc1d832b3328f3e2d4ab6d1c5b903e2de1b1;p=dealii.git 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 --- 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