]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning in base/bounding_box.cc 5485/head
authorDaniel Arndt <d.arndt@math.uni-goettingen.de>
Fri, 17 Nov 2017 09:47:34 +0000 (10:47 +0100)
committerDaniel Arndt <d.arndt@math.uni-goettingen.de>
Fri, 17 Nov 2017 09:47:34 +0000 (10:47 +0100)
source/base/bounding_box.cc

index 42843b725e2d5bb66eb0e3cdab37fa1c9141923b..9b2163b6192c969e4f9473a99b0142a2f519a90e 100644 (file)
@@ -88,7 +88,7 @@ NeighborType BoundingBox < spacedim,Number >::get_neighbor_type (const BoundingB
              std::numeric_limits<Number>::epsilon() * (std::abs( intersect_bbox_min[d]) + std::abs(intersect_bbox_max[d] )) )
           --intersect_dim;
 
-      if ( intersect_dim == 0 || intersect_dim == spacedim - 2 )
+      if ( intersect_dim == 0 || intersect_dim + 2 == spacedim )
         return NeighborType::simple_neighbors;
 
       // Checking the two mergeable cases: first if the boxes are aligned so that they can be merged

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.