From: wolf 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12aed7089483104fee65df1ec8602f392c5ea1f8;p=dealii-svn.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