aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
diff options
context:
space:
mode:
authorsvn_bwardell <svn_bwardell@105869f7-3296-0410-a4ea-f4349344b45a>2011-08-07 12:40:58 +0000
committersvn_bwardell <svn_bwardell@105869f7-3296-0410-a4ea-f4349344b45a>2011-08-07 12:40:58 +0000
commit05a54ba38745d7130141e2d606ca5068b18d90fd (patch)
treecc439d8b48c6d6d915ac8fddea7b7192526938fc /schedule.ccl
parent80a618b99cf4ad7e0c4ac06645486ac9c0e71c4f (diff)
Add code to test vectorisation macros.
This is conditionally run dependent on the "tests" parameter which can take the values "report", "abort" or "skip". The default is "skip" which causes the tests not to run. git-svn-id: https://svn.cct.lsu.edu/repos/numrel/LSUThorns/Vectors/trunk@18 105869f7-3296-0410-a4ea-f4349344b45a
Diffstat (limited to 'schedule.ccl')
-rw-r--r--schedule.ccl8
1 files changed, 8 insertions, 0 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 7da984f..d6c06a9 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -4,3 +4,11 @@ schedule Vectors_Startup at CCTK_STARTUP
{
LANG: C
} "Print startup message"
+
+if (CCTK_EQUALS(tests, "report") || CCTK_EQUALS(tests, "abort"))
+{
+ schedule Vectors_Test at CCTK_PARAMCHECK
+ {
+ LANG: C
+ } "Run correctness tests."
+}