aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetRegrid2
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2012-04-28 18:24:15 -0400
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:17 +0100
commitbeac0327f5a70394694f6365a999b50373ed1de9 (patch)
tree56d2a1a61889f0db47549a8352dfcfd5da3041fb /Carpet/CarpetRegrid2
parentfb6394033e8ae0c6443275564892af9bb0f2a6f7 (diff)
CarpetRegrid2: Take buffer2 zones into account
Diffstat (limited to 'Carpet/CarpetRegrid2')
-rw-r--r--Carpet/CarpetRegrid2/src/property.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/Carpet/CarpetRegrid2/src/property.cc b/Carpet/CarpetRegrid2/src/property.cc
index 911e1d5b1..ee1b4d195 100644
--- a/Carpet/CarpetRegrid2/src/property.cc
+++ b/Carpet/CarpetRegrid2/src/property.cc
@@ -140,14 +140,8 @@ namespace CarpetRegrid2 {
level_boundary const& bnd,
vector<ibset> const& regions, int const rl)
{
- ibset buffered;
- for (ibset::const_iterator
- ibb = regions.at(rl).begin(); ibb != regions.at(rl).end(); ++ ibb)
- {
- ibbox const& bb = *ibb;
- buffered |= bb.expand (dd.buffer_widths.at(rl));
- }
- return buffered;
+ return regions.at(rl).expand (dd.buffer_widths.at(rl) +
+ dd.buffer2_widths.at(rl));
}
bool add_buffers::