From 00c2af5406a2851350123eea53237a60d1de8d92 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 26 Mar 2001 15:47:22 +0000 Subject: [PATCH] Add assertions. git-svn-id: https://svn.dealii.org/trunk@4291 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/fe/mapping_q.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/fe/mapping_q.cc b/deal.II/deal.II/source/fe/mapping_q.cc index 223effc706..4f3f80eb98 100644 --- a/deal.II/deal.II/source/fe/mapping_q.cc +++ b/deal.II/deal.II/source/fe/mapping_q.cc @@ -853,6 +853,7 @@ MappingQ<1>::add_line_support_points (const Triangulation<1>::cell_iterator &, { // there are no points on bounding // lines which are to be added + Assert (dim > 1, ExcImpossibleInDim(dim)); } #endif @@ -1053,7 +1054,7 @@ void MappingQ::add_quad_support_points(const typename Triangulation::cell_iterator &, std::vector > &) const { - Assert(false, ExcInternalError()); + Assert (dim > 2, ExcImpossibleInDim(dim)); } -- 2.39.5