]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Clean up some confusion with function arguments.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:42:23 +0000 (16:42 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 7 Apr 2013 16:42:23 +0000 (16:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@29212 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index f6e3eb2b88d74446debd8b8b765229de747b0072..87fe5c1f73ac2c7aa1220963b09a3dd29dd18323 100644 (file)
@@ -585,17 +585,19 @@ namespace internal
                           const unsigned int level,
                           const bool check_validity)
         {
-          for (typename std::vector<typename DoFHandler<1,spacedim>::MGVertexDoFs>::iterator i=dof_handler.mg_vertex_dofs.begin();
-               i!=dof_handler.mg_vertex_dofs.end(); ++i)
+          for (typename std::vector<typename DoFHandler<1,spacedim>::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; d<dof_handler.get_fe().dofs_per_vertex; ++d)
                 {
-                  unsigned int idx = i->get_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<unsigned int>::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<unsigned int>::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)
                 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.