From: Wolfgang Bangerth Date: Thu, 22 Jun 2023 21:34:00 +0000 (-0600) Subject: Add an assertion. X-Git-Tag: relicensing~856^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15443%2Fhead;p=dealii.git Add an assertion. --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 3cb323f56d..d063945984 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -3479,6 +3479,7 @@ template inline TriaIterator> CellAccessor::face(const unsigned int i) const { + AssertIndexRange(i, this->n_faces()); return dealii::internal::CellAccessorImplementation::get_face(*this, i); }