]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion. 15443/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 Jun 2023 21:34:00 +0000 (15:34 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 22 Jun 2023 21:34:00 +0000 (15:34 -0600)
include/deal.II/grid/tria_accessor.templates.h

index 3cb323f56d74b43733ee03a16397f8c9587d59ae..d063945984d7d2831816948c6b3ca58a6d5dbbbf 100644 (file)
@@ -3479,6 +3479,7 @@ template <int dim, int spacedim>
 inline TriaIterator<TriaAccessor<dim - 1, dim, spacedim>>
 CellAccessor<dim, spacedim>::face(const unsigned int i) const
 {
+  AssertIndexRange(i, this->n_faces());
   return dealii::internal::CellAccessorImplementation::get_face(*this, i);
 }
 

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.