]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add check for level difference in update_periodic_face_map_recursively
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 9 Aug 2018 09:22:08 +0000 (11:22 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 9 Aug 2018 10:44:49 +0000 (12:44 +0200)
source/grid/tria.cc

index 5b96819c29a7231f1653c018e7b2bbce1b063ce9..053a255cc01559831a27c8312604d088f115bf92 100644 (file)
@@ -951,6 +951,8 @@ namespace
     Assert(face_1->at_boundary() && face_2->at_boundary(),
            ExcMessage("Periodic faces must be on the boundary"));
 
+    Assert(std::abs(cell_1->level() - cell_2->level()) < 2, ExcInternalError());
+
     // insert periodic face pair for both cells
     using CellFace =
       std::pair<typename Triangulation<dim, spacedim>::cell_iterator,

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.