aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-12-10 19:21:28 -0500
committerBarry Wardell <barry.wardell@gmail.com>2011-12-14 20:19:46 +0000
commit15a353d4734b13769f5598331941ecacc608880d (patch)
tree367faf9839eedc831c034e4efefa0eeff0467b17 /Carpet/CarpetLib/src
parent4da3be4ddcd5cbc0991cd494ebef092d5523cd48 (diff)
CarpetLib: Ignore empty bboxes in bboxset::operator|=(bbox)
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/bboxset.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bboxset.cc b/Carpet/CarpetLib/src/bboxset.cc
index b2ab93d5e..9b0b64fb7 100644
--- a/Carpet/CarpetLib/src/bboxset.cc
+++ b/Carpet/CarpetLib/src/bboxset.cc
@@ -363,6 +363,7 @@ bboxset<T,D> bboxset<T,D>::operator+ (const bboxset& s) const
template<typename T, int D>
bboxset<T,D>& bboxset<T,D>::operator|= (const box& b)
{
+ if (b.empty()) return *this;
#if 0
// this has a cost of O(n^2)
bboxset tmp = b - *this;