From 5a7dba58a38f24e4605da4f3f8ff40ac74e32958 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 12 Sep 2017 13:40:57 -0600 Subject: [PATCH] Limit updating DoF indices to cells where this is possible. --- source/dofs/dof_handler_policy.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 90ac2e3db6..f6cd3dacd2 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -119,7 +119,10 @@ namespace internal void *, void *) { - cell->update_cell_dof_indices_cache (); + if (cell->has_children() + || + (!cell->has_children() && !cell->is_artificial())) + cell->update_cell_dof_indices_cache (); }; // parallelize filling all of the cell caches. by using -- 2.39.5