aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--param.ccl1
-rw-r--r--schedule.ccl14
2 files changed, 14 insertions, 1 deletions
diff --git a/param.ccl b/param.ccl
index dbb29b6..ad6e3f6 100644
--- a/param.ccl
+++ b/param.ccl
@@ -20,6 +20,7 @@ USES KEYWORD rotation_axis
# note our access is read-only
shares: ADMBase
USES KEYWORD metric_type
+USES CCTK_INT metric_timelevels
# we need to look at SpaceMask::use_mask in order to find out about the
# excision region
diff --git a/schedule.ccl b/schedule.ccl
index b22e32f..edaf235 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -2,7 +2,19 @@
# $Header$
storage: ah_radius ah_origin ah_centroid ah_flags
-storage: ahmask[3]
+
+if (metric_timelevels == 1)
+{
+ storage: ahmask[1]
+}
+else if (metric_timelevels == 2)
+{
+ storage: ahmask[2]
+}
+else if (metric_timelevels == 3)
+{
+ storage: ahmask[3]
+}
#
# setup