From 93673235fd2a03c2e3defc849053b913bbf090b2 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sun, 22 May 2011 21:40:03 -0400 Subject: CarpetReduce: Rewrite prolongation and reduction mask handling Rewrite prolongation and reduction mask handling to use the pre-calculated information in the dh structure. --- Carpet/CarpetReduce/src/mask_carpet.cc | 168 ++++----------------------------- 1 file changed, 16 insertions(+), 152 deletions(-) (limited to 'Carpet/CarpetReduce') diff --git a/Carpet/CarpetReduce/src/mask_carpet.cc b/Carpet/CarpetReduce/src/mask_carpet.cc index 160471cb4..676e9803f 100644 --- a/Carpet/CarpetReduce/src/mask_carpet.cc +++ b/Carpet/CarpetReduce/src/mask_carpet.cc @@ -16,28 +16,6 @@ -#if 0 -#define LOOP_OVER_NEIGHBOURS(dir) \ -{ \ - ivect dir_(-1); \ - do { \ - ivect const& dir = dir_; \ - { -#define END_LOOP_OVER_NEIGHBOURS \ - } \ - for (int d_=0; d_