From 6d8ab0faea217e91a99745bb9b33a96d95ed55cb Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 15 Mar 2017 14:31:10 -0500 Subject: [PATCH] Change the error message to ExcInvalidRange in two more asserts --- examples/step-26/step-26.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.39.5