]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add assertion to neighbor_child_on_subface function.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Oct 2004 13:09:49 +0000 (13:09 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 26 Oct 2004 13:09:49 +0000 (13:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@9722 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria_accessor.cc

index e196570c046c87ae83e5d3028951bbc0dff6d5c9..d4bf89608942c03e5ca047e528620c68ea5123cd 100644 (file)
@@ -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

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.