]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Limit updating DoF indices to cells where this is possible.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 12 Sep 2017 19:40:57 +0000 (13:40 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 13 Sep 2017 13:41:25 +0000 (07:41 -0600)
source/dofs/dof_handler_policy.cc

index 90ac2e3db6c70fb426a2b4f15452ff0ef12b1d31..f6cd3dacd270e9874886167286aa5c9401ed0579 100644 (file)
@@ -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

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.