aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/bboxset.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:33:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-08-09 20:33:00 +0000
commit8d5feb066ded9cbe7badb9ffcc51f8d2d14e3222 (patch)
treee161120f1a4cdf18f83dc60d677d4143c7f0c684 /Carpet/CarpetLib/src/bboxset.hh
parent8710d60d1c13819ac7deab33edfded6af795db97 (diff)
CarpetLib: Add bboxset::intersects
darcs-hash:20070809203347-dae7b-af9e0bcb5bb419bf309d8eef12ed5cc52a9ba2a9.gz
Diffstat (limited to 'Carpet/CarpetLib/src/bboxset.hh')
-rw-r--r--Carpet/CarpetLib/src/bboxset.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bboxset.hh b/Carpet/CarpetLib/src/bboxset.hh
index 602f8139c..1a797e2c5 100644
--- a/Carpet/CarpetLib/src/bboxset.hh
+++ b/Carpet/CarpetLib/src/bboxset.hh
@@ -73,6 +73,9 @@ public:
size_type size () const;
int setsize () const { return bs.size(); }
+ // Find out whether this bboxset intersects the bbox b
+ bool intersects (const box& b) const;
+
// Add (bboxes that don't overlap)
bboxset& operator+= (const box& b)
{