]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Changed constructor for bounding box to accept mildly degenerate input
authordanshapero <shapero.daniel@gmail.com>
Wed, 27 Sep 2017 00:45:02 +0000 (17:45 -0700)
committerdanshapero <shapero.daniel@gmail.com>
Tue, 3 Oct 2017 18:22:47 +0000 (11:22 -0700)
include/deal.II/base/bounding_box.h

index 6afc94203ab4721bd6dfde24910ab8cd29cfb411..075e53f5a8dc07ebf0f8ec2eafc1fea66738efe7 100644 (file)
@@ -108,7 +108,7 @@ BoundingBox<spacedim, Number>::BoundingBox (const std::pair<Point<spacedim,Numbe
 {
   //We check the Bounding Box is not degenerate
   for (unsigned int i=0; i<spacedim; ++i)
-    Assert (boundary_points.first[i] < boundary_points.second[i],
+    Assert (boundary_points.first[i] <= boundary_points.second[i],
             ExcMessage ("Bounding Box can't be created: the point's order should be bottom left, top right!"));
 
   this->boundary_points = boundary_points;

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.