[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: |
Fri, 24 May 2019 06:08:51 -0400 (EDT) |
branch: mb-Use_rtree_in_poly_composite
commit d45c1bf051dfe03eccd9f4c278a842026a6b8729
Author: mb <address@hidden>
Date: Fri May 24 12:08:44 2019 +0200
Use level 2-asserts, since these functions may be called a lot.
---
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 747ed30..cff1633 100644
--- a/src/bgeot_rtree.cc
+++ b/src/bgeot_rtree.cc
@@ -198,27 +198,27 @@ namespace bgeot {
const base_node& bmax,
pbox_set& boxlst) const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(),boxlst,intersection_p(bmin,bmax));
}
void rtree::find_containing_boxes(const base_node& bmin,
const base_node& bmax, pbox_set& boxlst)
const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(), boxlst, contains_p(bmin,bmax));
}
void rtree::find_contained_boxes(const base_node& bmin,
const base_node& bmax, pbox_set& boxlst)
const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(), boxlst, contained_p(bmin,bmax));
}
void rtree::find_boxes_at_point(const base_node& P, pbox_set& boxlst) const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(), boxlst, has_point_p(P, EPS));
}
@@ -226,7 +226,7 @@ namespace bgeot {
const base_small_vector& dirv,
pbox_set& boxlst) const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(),boxlst,intersect_line(org, dirv));
}
@@ -236,7 +236,7 @@ namespace bgeot {
const base_node& bmax,
pbox_set& boxlst) const {
boxlst.clear();
- GMM_ASSERT1(root, "Boxtree not initialised.");
+ GMM_ASSERT2(root, "Boxtree not initialised.");
find_matching_boxes_(root.get(), boxlst,
intersect_line_and_box(org, dirv, bmin, bmax));
}