From: Wolfgang Bangerth Date: Wed, 24 Apr 2019 20:53:03 +0000 (-0600) Subject: Fix a mistaken assertion that only succeeds by accident. X-Git-Tag: v9.1.0-rc1~177^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f44cce3ac84f72a691c4412ac94d33d230ec02a;p=dealii.git Fix a mistaken assertion that only succeeds by accident. Specifically, it succeeds because we get a pointer to the first of a block of elements where the size of the block is greater than one. If one had a 1-point quadrature formula, the assertion would fail. --- diff --git a/examples/step-18/step-18.cc b/examples/step-18/step-18.cc index 5796801b57..035991a020 100644 --- a/examples/step-18/step-18.cc +++ b/examples/step-18/step-18.cc @@ -1742,7 +1742,7 @@ namespace Step18 Assert(local_quadrature_points_history >= &quadrature_point_history.front(), ExcInternalError()); - Assert(local_quadrature_points_history < + Assert(local_quadrature_points_history <= &quadrature_point_history.back(), ExcInternalError());