From 6e4b62f30473725366f6395e0001417e00efb737 Mon Sep 17 00:00:00 2001 From: guido Date: Mon, 19 Apr 1999 14:33:01 +0000 Subject: [PATCH] assertion in base_element git-svn-id: https://svn.dealii.org/trunk@1178 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_system.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deal.II/deal.II/include/fe/fe_system.h b/deal.II/deal.II/include/fe/fe_system.h index 073ef326b7..9cc52ff6e0 100644 --- a/deal.II/deal.II/include/fe/fe_system.h +++ b/deal.II/deal.II/include/fe/fe_system.h @@ -505,6 +505,8 @@ template inline unsigned FESystem::element_multiplicity(unsigned index) const { + Assert (index < base_elements.size(), + ExcIndexRange(index, 0, base_elements.size())); return base_elements[index].second; } @@ -514,6 +516,8 @@ template inline const FiniteElement& FESystem::base_element(unsigned index) const { + Assert (index < base_elements.size(), + ExcIndexRange(index, 0, base_elements.size())); return *base_elements[index].first; } -- 2.39.5