From: SAM COX Date: Thu, 13 Oct 2016 13:47:26 +0000 (+0100) Subject: Ask neighbor, rather than cell_face, about children. X-Git-Tag: v8.5.0-rc1~578^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb756bc6ea25e767c7dd53799031ea0c532f6a38;p=dealii.git Ask neighbor, rather than cell_face, about children. --- diff --git a/source/dofs/dof_tools_sparsity.cc b/source/dofs/dof_tools_sparsity.cc index 725546c1a8..fb409110b6 100644 --- a/source/dofs/dof_tools_sparsity.cc +++ b/source/dofs/dof_tools_sparsity.cc @@ -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();