From: Matthias Maier Date: Wed, 15 Mar 2017 19:31:10 +0000 (-0500) Subject: Change the error message to ExcInvalidRange in two more asserts X-Git-Tag: v8.5.0-rc1~37^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4069%2Fhead;p=dealii.git Change the error message to ExcInvalidRange in two more asserts --- diff --git a/examples/step-26/step-26.cc b/examples/step-26/step-26.cc index 08a7687bae..50ffdde15f 100644 --- a/examples/step-26/step-26.cc +++ b/examples/step-26/step-26.cc @@ -145,8 +145,8 @@ namespace Step26 double RightHandSide::value (const Point &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::value (const Point &/*p*/, const unsigned int component) const { - (void)component; - Assert(component == 0, ExcInternalError()); + (void) component; + Assert (component == 0, ExcIndexRange(component, 0, 1)); return 0; }