From: bangerth Date: Sun, 7 Apr 2013 16:42:23 +0000 (+0000) Subject: Clean up some confusion with function arguments. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fe118252371704eb3d87a17518a0c6b9a3b60f6;p=dealii-svn.git Clean up some confusion with function arguments. git-svn-id: https://svn.dealii.org/trunk@29212 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_handler_policy.cc b/deal.II/source/dofs/dof_handler_policy.cc index f6e3eb2b88..87fe5c1f73 100644 --- a/deal.II/source/dofs/dof_handler_policy.cc +++ b/deal.II/source/dofs/dof_handler_policy.cc @@ -585,17 +585,19 @@ namespace internal const unsigned int level, const bool check_validity) { - for (typename std::vector::MGVertexDoFs>::iterator i=dof_handler.mg_vertex_dofs.begin(); - i!=dof_handler.mg_vertex_dofs.end(); ++i) + for (typename std::vector::MGVertexDoFs>::iterator + i=dof_handler.mg_vertex_dofs.begin(); + i!=dof_handler.mg_vertex_dofs.end(); + ++i) // if the present vertex lives on // the current level if ((i->get_coarsest_level() <= level) && (i->get_finest_level() >= level)) for (unsigned int d=0; dget_index (level, d /*,dof_handler.get_fe().dofs_per_vertex ???*/); + unsigned int idx = i->get_index (level, d); if (idx != DoFHandler<1>::invalid_dof_index) - i->set_index (level, d /*, dof_handler.get_fe().dofs_per_vertex ???*/, + i->set_index (level, d, (indices.n_elements() == 0)? (new_numbers[idx]) : (new_numbers[indices.index_within_set(idx)])); @@ -605,8 +607,10 @@ namespace internal } - for (std::vector::iterator i=dof_handler.mg_levels[level]->dof_object.dofs.begin(); - i!=dof_handler.mg_levels[level]->dof_object.dofs.end(); ++i) + for (std::vector::iterator + i=dof_handler.mg_levels[level]->dof_object.dofs.begin(); + i!=dof_handler.mg_levels[level]->dof_object.dofs.end(); + ++i) { if (*i != DoFHandler<1>::invalid_dof_index) {