diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-03-04 21:13:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2007-03-04 21:13:00 +0000 |
commit | e09d86ff5fd68943fbc79de6535b28033e7a8428 (patch) | |
tree | d980ae0ab1679c720d35d95f83fde97de89fc006 /Carpet/CarpetLib/src/operator_prototypes.hh | |
parent | fd1f888aeaf1d468b44e7ef7ab77255c7ea8e706 (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.hh | 2 |
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); |