]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a mistaken assertion that only succeeds by accident. 7960/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 24 Apr 2019 20:53:03 +0000 (14:53 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 24 Apr 2019 20:53:03 +0000 (14:53 -0600)
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

index 5796801b572fe8a59baa517e3878ae1e077d4a84..035991a0208a196547dff77cc5199a7976326a18 100644 (file)
@@ -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());
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.