aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/operator_prototypes.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-03-04 21:13:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-03-04 21:13:00 +0000
commite09d86ff5fd68943fbc79de6535b28033e7a8428 (patch)
treed980ae0ab1679c720d35d95f83fde97de89fc006 /Carpet/CarpetLib/src/operator_prototypes.hh
parentfd1f888aeaf1d468b44e7ef7ab77255c7ea8e706 (diff)
CarpetLib: Use CARPET_DEBUG and CARPET_OPTIMISE instead of NDEBUG
Use CARPET_DEBUG and CARPET_OPTIMISE (instead of NDEBUG) to decide whether to perform or omit somewhat expensive self checks. When CARPET_DEBUG is defined, even expensive checks are performed. When CARPET_OPTIMISE is defined, even cheap checks are omitted. darcs-hash:20070304211311-dae7b-ae917b0f40496fedf4bb5d1c2a70ad31a5167ca3.gz
Diffstat (limited to 'Carpet/CarpetLib/src/operator_prototypes.hh')
-rw-r--r--Carpet/CarpetLib/src/operator_prototypes.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/operator_prototypes.hh b/Carpet/CarpetLib/src/operator_prototypes.hh
index 40749af1e..0f4a0d80c 100644
--- a/Carpet/CarpetLib/src/operator_prototypes.hh
+++ b/Carpet/CarpetLib/src/operator_prototypes.hh
@@ -21,7 +21,7 @@ namespace CarpetLib {
index3 (size_t const i, size_t const j, size_t const k,
size_t const exti, size_t const extj, size_t const extk)
{
-#ifndef CARPET_OPTIMISE
+#ifdef CARPET_DEBUG
assert (static_cast <ptrdiff_t> (i) >= 0 and i < exti);
assert (static_cast <ptrdiff_t> (j) >= 0 and j < extj);
assert (static_cast <ptrdiff_t> (k) >= 0 and k < extk);