getfem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Getfem-commits] (no subject)


From: Markus Bürg
Subject: [Getfem-commits] (no subject)
Date: Mon, 3 Jun 2019 11:40:11 -0400 (EDT)

branch: mb-Use_rtree_in_poly_composite
commit 7508d13f787e2d53fe541fdc929852d7a299287c
Author: mb <address@hidden>
Date:   Mon May 27 12:42:48 2019 +0200

    Make assert level 2 to not impact performance in release builds.
---
 src/bgeot_rtree.cc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/bgeot_rtree.cc b/src/bgeot_rtree.cc
index aea8279..257bcfa 100644
--- a/src/bgeot_rtree.cc
+++ b/src/bgeot_rtree.cc
@@ -227,7 +227,7 @@ namespace bgeot {
                                       pbox_set& boxlst) const {
     
     boxlst.clear();
-    GMM_ASSERT1(tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2(tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(),boxlst,intersection_p(bmin,bmax, EPS));
   }
@@ -236,7 +236,7 @@ namespace bgeot {
                                     const base_node& bmax,
                                     pbox_set& boxlst) const {
     boxlst.clear();
-    GMM_ASSERT1( tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2( tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(), boxlst, contains_p(bmin,bmax, EPS));
   }
@@ -245,14 +245,14 @@ namespace bgeot {
                                    const base_node& bmax,
                                    pbox_set& boxlst) const {
     boxlst.clear();
-    GMM_ASSERT1(tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2(tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(), boxlst, contained_p(bmin,bmax, EPS));
   }
 
   void rtree::find_boxes_at_point(const base_node& P, pbox_set& boxlst) const {
     boxlst.clear();
-    GMM_ASSERT1(tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2(tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(), boxlst, has_point_p(P, EPS));
   }
@@ -261,7 +261,7 @@ namespace bgeot {
                                            const base_small_vector& dirv,
                                            pbox_set& boxlst) const {
     boxlst.clear();
-    GMM_ASSERT1(tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2(tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(),boxlst,intersect_line(org, dirv));
   }
@@ -272,7 +272,7 @@ namespace bgeot {
                                            const base_node& bmax,
                                            pbox_set& boxlst) const {
     boxlst.clear();
-    GMM_ASSERT1(tree_built, "Boxtree not initialised.");
+    GMM_ASSERT2(tree_built, "Boxtree not initialised.");
     if (root)
       find_matching_boxes_(root.get(), boxlst,
                            intersect_line_and_box(org, dirv, bmin, bmax, EPS));



reply via email to

[Prev in Thread] Current Thread [Next in Thread]