aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/param.ccl
diff options
context:
space:
mode:
authorRoland Haas <rhaas@tapir.caltech.edu>2013-09-04 14:45:56 -0700
committerRoland Haas <rhaas@tapir.caltech.edu>2013-09-27 10:41:38 -0700
commit0e435fca01c0ce3356565c661afb0ff9d64880a1 (patch)
tree78aa48df07d6def528a5b4368b96691e9de57722 /Carpet/CarpetLib/param.ccl
parent38923afb0681b02fae2171cf54671cbe587ff748 (diff)
CarpetLib: add some code for electric fence like functionality
Diffstat (limited to 'Carpet/CarpetLib/param.ccl')
-rw-r--r--Carpet/CarpetLib/param.ccl9
1 files changed, 9 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/param.ccl b/Carpet/CarpetLib/param.ccl
index 541ec2f49..5f1d23b82 100644
--- a/Carpet/CarpetLib/param.ccl
+++ b/Carpet/CarpetLib/param.ccl
@@ -76,6 +76,15 @@ BOOLEAN poison_new_memory "Try to catch uninitialised data by setting newly allo
{
} "no"
+BOOLEAN electric_fence "Surround each allocated memory block by canaries to check for out-of-bounds accesses" STEERABLE=recover
+{
+} "no"
+
+CCTK_INT fence_width "number of guard cells to use" STEERABLE=recover
+{
+ 1:* :: "any number of cells"
+} 1
+
RESTRICTED:
CCTK_INT poison_value "Integer value (0..255) used to poison new timelevels (with memset)" STEERABLE=always