From: Wolfgang Bangerth Date: Mon, 24 Jan 2022 18:20:32 +0000 (-0700) Subject: Use n_isotropic_children() in an assertion. X-Git-Tag: v9.4.0-rc1~564^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63a37f411b3b187624b6a206497292c863825e1a;p=dealii.git Use n_isotropic_children() in an assertion. --- diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 28f8229f85..a29c85a9c2 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -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) {