diff options
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetLib/src/bbox.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bbox.cc b/Carpet/CarpetLib/src/bbox.cc index c5a429d5e..a382b0c67 100644 --- a/Carpet/CarpetLib/src/bbox.cc +++ b/Carpet/CarpetLib/src/bbox.cc @@ -80,6 +80,8 @@ typename bbox<T,D>::size_type bbox<T,D>::size () const { // Containment template<typename T, int D> bool bbox<T,D>::contains (const vect<T,D>& x) const { + if (empty()) return false; + // no alignment check return all(x>=lower() and x<=upper()); } |