]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use n_isotropic_children() in an assertion.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 24 Jan 2022 18:20:32 +0000 (11:20 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 26 Jan 2022 18:34:00 +0000 (11:34 -0700)
include/deal.II/grid/reference_cell.h

index 28f8229f8596a5f1ebb566fc1143004283a1a85b..a29c85a9c28faf144fe555423236f65a222d8b31 100644 (file)
@@ -1147,6 +1147,7 @@ ReferenceCell::child_cell_on_face(
   const unsigned char face_orientation_raw) const
 {
   AssertIndexRange(face, n_faces());
+  AssertIndexRange(subface, face_reference_cell(face).n_isotropic_children());
 
   if (*this == ReferenceCells::Vertex)
     {

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.