]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Ask neighbor, rather than cell_face, about children. 3232/head
authorSAM COX <spc29@le.ac.uk>
Thu, 13 Oct 2016 13:47:26 +0000 (14:47 +0100)
committerSAM COX <spc29@le.ac.uk>
Thu, 13 Oct 2016 14:15:23 +0000 (15:15 +0100)
source/dofs/dof_tools_sparsity.cc

index 725546c1a84fc3128c5a01c98300601649233b21..fb409110b6cde5560abfad44da35e5956e003adc 100644 (file)
@@ -807,7 +807,7 @@ namespace DoFTools
                                         cell->periodic_neighbor_face_no (face_n):
                                         cell->neighbor_face_no (face_n);
 
-                      if (cell_face->has_children ())
+                      if (neighbor->has_children ())
                         {
                           for (unsigned int sub_nr = 0;
                                sub_nr != cell_face->n_children ();
@@ -1080,7 +1080,7 @@ namespace DoFTools
                           neighbor->is_locally_owned ())
                         continue; // (the neighbor is finer)
 
-                      if (cell_face->has_children())
+                      if (neighbor->has_children())
                         {
                           for (unsigned int sub_nr = 0;
                                sub_nr != cell_face->n_children();

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.