]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change the error message to ExcInvalidRange in two more asserts 4069/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:31:10 +0000 (14:31 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:34:46 +0000 (14:34 -0500)
examples/step-26/step-26.cc

index 08a7687bae866fdf0339abe894966f9c16084d7c..50ffdde15f0f54ca0bf0bc29ec1a36f34dfebf9f 100644 (file)
@@ -145,8 +145,8 @@ namespace Step26
   double RightHandSide<dim>::value (const Point<dim> &p,
                                     const unsigned int component) const
   {
-    (void)component;
-    Assert (component == 0, ExcInternalError());
+    (void) component;
+    Assert (component == 0, ExcIndexRange(component, 0, 1));
     Assert (dim == 2, ExcNotImplemented());
 
     const double time = this->get_time();
@@ -186,8 +186,8 @@ namespace Step26
   double BoundaryValues<dim>::value (const Point<dim> &/*p*/,
                                      const unsigned int component) const
   {
-    (void)component;
-    Assert(component == 0, ExcInternalError());
+    (void) component;
+    Assert (component == 0, ExcIndexRange(component, 0, 1));
     return 0;
   }
 

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.