From: Timo Heister Date: Fri, 31 May 2013 22:13:52 +0000 (+0000) Subject: skip parts of loop in distribute_dofs() that is not necessary X-Git-Tag: v8.0.0~351 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e4b4bdbb31075a1272b91686c00cf144042ebe;p=dealii.git skip parts of loop in distribute_dofs() that is not necessary git-svn-id: https://svn.dealii.org/trunk@29698 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 813cb517fd..71c5c734bd 100644 --- a/deal.II/source/dofs/dof_handler_policy.cc +++ b/deal.II/source/dofs/dof_handler_policy.cc @@ -252,9 +252,8 @@ namespace internal next_free_dof); // update the cache used for cell dof indices - for (typename DoFHandler::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