From 3f44cce3ac84f72a691c4412ac94d33d230ec02a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 24 Apr 2019 14:53:03 -0600 Subject: [PATCH] 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. --- examples/step-18/step-18.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5