From 766d825ca5c85437909555a693cbf60941c8a7da Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 7 Apr 2013 16:42:23 +0000 Subject: [PATCH] Clean up some confusion with function arguments. git-svn-id: https://svn.dealii.org/trunk@29212 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_handler_policy.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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) { -- 2.39.5