]> https://gitweb.dealii.org/ - dealii.git/commitdiff
skip parts of loop in distribute_dofs() that is not necessary
authorTimo Heister <timo.heister@gmail.com>
Fri, 31 May 2013 22:13:52 +0000 (22:13 +0000)
committerTimo Heister <timo.heister@gmail.com>
Fri, 31 May 2013 22:13:52 +0000 (22:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@29698 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_handler_policy.cc

index 813cb517fd25a59e6933a674a7b463dae21a1c48..71c5c734bd907a28bb47fda50d6d0194f7941f13 100644 (file)
@@ -252,9 +252,8 @@ namespace internal
                                                            next_free_dof);
 
           // update the cache used for cell dof indices
-          for (typename DoFHandler<dim,spacedim>::level_cell_iterator
-               cell = dof_handler.begin(); cell != dof_handler.end(); ++cell)
-            if (cell->subdomain_id() != numbers::artificial_subdomain_id)
+          for (cell = dof_handler.begin_active(); cell != endc; ++cell)
+            if (!cell->is_artificial())
               cell->update_cell_dof_indices_cache ();
 
           // finally restore the user flags

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.