aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-28 11:20:51 -0700
committerErik Schnetter <schnetter@gmail.com>2013-07-28 11:20:51 -0700
commite3e9d9c11e6658fbc57b306d8881579a48d6f69e (patch)
treeac1e8250c9d4595f6012cbb846e3084db2673797 /Carpet/CarpetLib
parente6d432076b3f84d8920eaccecf72f7b1c9e60180 (diff)
CarpetLib: Calculate stepped buffer zones only in debug mode
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/dh.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/dh.cc b/Carpet/CarpetLib/src/dh.cc
index 9bfafcb02..5eaa49cf9 100644
--- a/Carpet/CarpetLib/src/dh.cc
+++ b/Carpet/CarpetLib/src/dh.cc
@@ -545,6 +545,7 @@ regrid (bool const do_init)
CCTK_WARN (CCTK_WARN_COMPLAIN, buf.str().c_str());
}
+#ifdef CARPET_DEBUG
vector<ibset> notactive_stepped (num_substeps+1);
notactive_stepped.AT(0) = notowned;
for (int substep = 1; substep <= num_substeps; ++ substep) {
@@ -557,6 +558,7 @@ regrid (bool const do_init)
ASSERT_rl (notactive_overlaps == notactive,
"The stepped not-owned region including overlaps must be equal to the not-active region");
}
+#endif
// All buffer zones
//ibset const allbuffers = allowned & notowned.expand (buffer_width);
@@ -570,6 +572,7 @@ regrid (bool const do_init)
ibset& allactive = level_level.active;
allactive = allowned - notactive;
+#ifdef CARPET_DEBUG
// All stepped buffer zones
vector<ibset> allbuffers_stepped (num_substeps);
ibset allbuffers_stepped_combined;
@@ -583,6 +586,7 @@ regrid (bool const do_init)
ASSERT_rl (allbuffers_stepped_combined == allbuffers,
"The stepped buffer zones must be equal to the buffer zones");
}
+#endif
// Overlap zones and buffer zones must be in the active part of
// the domain