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

index 1a9c9f0cd474a54dd5633beea67097faf3e8a0d4..87e256ec6f76c79e66a23083e9c5c41cca961e16 100644 (file)
@@ -327,6 +327,7 @@ namespace Step9
   RightHandSide<dim>::value (const Point<dim>   &p,
                              const unsigned int  component) const
   {
+    (void) component;
     Assert (component == 0, ExcIndexRange (component, 0, 1));
     const double diameter = 0.1;
     return ( (p-center_point).norm_square() < diameter*diameter ?
@@ -374,6 +375,7 @@ namespace Step9
   BoundaryValues<dim>::value (const Point<dim>   &p,
                               const unsigned int  component) const
   {
+    (void) component;
     Assert (component == 0, ExcIndexRange (component, 0, 1));
 
     const double sine_term = std::sin(16*numbers::PI*std::sqrt(p.norm_square()));

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.