From: Wolfgang Bangerth Date: Tue, 12 Sep 2017 19:40:57 +0000 (-0600) Subject: Limit updating DoF indices to cells where this is possible. X-Git-Tag: v9.0.0-rc1~1085^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a7dba58a38f24e4605da4f3f8ff40ac74e32958;p=dealii.git Limit updating DoF indices to cells where this is possible. --- 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