]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add assertions.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 Mar 2001 15:47:22 +0000 (15:47 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 26 Mar 2001 15:47:22 +0000 (15:47 +0000)
git-svn-id: https://svn.dealii.org/trunk@4291 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/mapping_q.cc

index 223effc7063042826354649c090b23f1c24a14a9..4f3f80eb987aef68515e1ef3a37e3da1fef050f8 100644 (file)
@@ -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<dim>::add_quad_support_points(const typename Triangulation<dim>::cell_iterator &,
                                       std::vector<Point<dim> > &) const
 {
-  Assert(false, ExcInternalError());
+  Assert (dim > 2, ExcImpossibleInDim(dim));
 }
 
 

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.