From e33b45a41070695856f42a71cbcb7308a0831b9e Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 15 Mar 2017 14:10:38 -0500 Subject: [PATCH] Fix unused variable warnings in step-41 --- examples/step-41/step-41.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/step-41/step-41.cc b/examples/step-41/step-41.cc index 68a889cdd1..8c3662bf82 100644 --- a/examples/step-41/step-41.cc +++ b/examples/step-41/step-41.cc @@ -130,7 +130,8 @@ namespace Step41 double RightHandSide::value (const Point &, 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::value (const Point &, 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::value (const Point &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; -- 2.39.5