From: Daniel Arndt Date: Thu, 9 Aug 2018 09:22:08 +0000 (+0200) Subject: Add check for level difference in update_periodic_face_map_recursively X-Git-Tag: v9.1.0-rc1~798^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e47669107b493da9fd039fc7c2dd3f4666d03be1;p=dealii.git Add check for level difference in update_periodic_face_map_recursively --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 5b96819c29..053a255cc0 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -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::cell_iterator,