diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:22:04 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-05-26 16:22:04 -0400 |
commit | 606c70ba30488ae8b5bf9384bbe85dc94e0cc522 (patch) | |
tree | 3df92973b2a6b6d4aae57c7a8c2e0268380ff6c8 /Carpet/CarpetLib/src/bbox.hh | |
parent | 7183bf5dff80a6f7ed563f633598fd1fa84d77fe (diff) |
CarpetLib: New function bbox::anti_contracted_for
anti_contracted_for is the exact opposite of contracted for. It is similar to expanded_for, but may return different results in corner cases.
Diffstat (limited to 'Carpet/CarpetLib/src/bbox.hh')
-rw-r--r-- | Carpet/CarpetLib/src/bbox.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/bbox.hh b/Carpet/CarpetLib/src/bbox.hh index d65928e02..5dea7f9d3 100644 --- a/Carpet/CarpetLib/src/bbox.hh +++ b/Carpet/CarpetLib/src/bbox.hh @@ -184,6 +184,9 @@ public: /** Find the largest b-compatible box inside this bbox. */ bbox contracted_for (const bbox& b) const CCTK_MEMBER_ATTRIBUTE_PURE; + /** Find the smallest open b-compatible box around *this */ + bbox anti_contracted_for (const bbox& b) const CCTK_MEMBER_ATTRIBUTE_PURE; + /** Find the smallest bbox containing both boxes. */ bbox expanded_containing (const bbox<T,D>& b) const CCTK_MEMBER_ATTRIBUTE_PURE; |