From 1cfe67c190e06ddd804484e4509cc9c3975ea350 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 31 May 2013 22:13:52 +0000 Subject: [PATCH] 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 --- deal.II/source/dofs/dof_handler_policy.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5