]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix unused variable warnings in step-41
authorMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:10:38 +0000 (14:10 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 15 Mar 2017 19:16:59 +0000 (14:16 -0500)
examples/step-41/step-41.cc

index 68a889cdd137975b287a36f4325ff2d68a3a1466..8c3662bf82672cf20f03484a9c02b9b6d0cc3031 100644 (file)
@@ -130,7 +130,8 @@ namespace Step41
   double RightHandSide<dim>::value (const Point<dim> &,
                                     const unsigned int component) const
   {
-    Assert (component == 0, ExcNotImplemented());
+    (void) component;
+    Assert(component == 0, ExcIndexRange(component, 0, 1));
 
     return -10;
   }
@@ -151,7 +152,8 @@ namespace Step41
   double BoundaryValues<dim>::value (const Point<dim> &,
                                      const unsigned int component) const
   {
-    Assert (component == 0, ExcNotImplemented());
+    (void) component;
+    Assert(component == 0, ExcIndexRange(component, 0, 1));
 
     return 0;
   }
@@ -174,7 +176,8 @@ namespace Step41
   double Obstacle<dim>::value (const Point<dim> &p,
                                const unsigned int component) const
   {
-    Assert (component == 0, ExcNotImplemented());
+    (void) component;
+    Assert(component == 0, ExcIndexRange(component, 0, 1));
 
     if (p (0) < -0.5)
       return -0.2;

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.