From 2822297ebe2307dd9a8eb0407a9d7494c9bf3858 Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 26 Oct 2004 13:09:49 +0000 Subject: [PATCH] Add assertion to neighbor_child_on_subface function. git-svn-id: https://svn.dealii.org/trunk@9722 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/tria_accessor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/grid/tria_accessor.cc b/deal.II/deal.II/source/grid/tria_accessor.cc index e196570c04..d4bf896089 100644 --- a/deal.II/deal.II/source/grid/tria_accessor.cc +++ b/deal.II/deal.II/source/grid/tria_accessor.cc @@ -2200,8 +2200,13 @@ neighbor_child_on_subface (const unsigned int face, (face_orientations_match ? subface : subface_translation[subface]))); + TriaIterator<3,CellAccessor<3> > neighbor_child= + this->neighbor(face)->child(neighbor_child_index); - return this->neighbor(face)->child(neighbor_child_index); + Assert(this->face(face)->child(subface)== + neighbor_child->face(neighbor_neighbor), ExcInternalError()); + + return neighbor_child; } #endif -- 2.39.5