aboutsummaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2013-09-05 20:15:49 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2013-09-05 20:15:49 +0200
commit95d4c660d0e60000f872f205fcc5bb553b838ec1 (patch)
tree685f7e8e87c68d9fddf0d522af0d8c6b88217989 /Tests
parent56b67942fc783fc984eb11302198e685f064d920 (diff)
McLachlan.mt: Add CaKernel test
Diffstat (limited to 'Tests')
-rw-r--r--Tests/McLachlan.mt11
1 files changed, 10 insertions, 1 deletions
diff --git a/Tests/McLachlan.mt b/Tests/McLachlan.mt
index d4448b0..55da4b1 100644
--- a/Tests/McLachlan.mt
+++ b/Tests/McLachlan.mt
@@ -8,7 +8,7 @@ SetSourceLanguage["C"];
(* Options *)
(******************************************************************************)
-Options[createCode] = {"DGFE" -> False};
+Options[createCode] = {"DGFE" -> False, "CaKernel" -> False};
createCode[derivOrder_, useJacobian_, splitUpwindDerivs_, evolutionTimelevels_, addMatter_, formulation_, vectorise_, opencl_, OptionsPattern[]] :=
Module[{prefix, suffix, thorn},
@@ -20,6 +20,7 @@ suffix =
<> If [!vectorise, "_NoVec", ""]
<> If [opencl, "_OpenCL", ""]
<> If [OptionValue[DGFE], "_DGFE", ""]
+ <> If [OptionValue[CaKernel], "_CaKernel", ""]
<> If [derivOrder!=4, "_O" <> ToString[derivOrder], ""]
<> If [splitUpwindDerivs, "", "_UPW"]
(* <> If [evolutionTimelevels!=3, "_TL" <> ToString[evolutionTimelevels], ""] *)
@@ -1411,6 +1412,7 @@ CreateKrancThornTT [groups, "TestThorns", thorn,
UseVectors -> vectorise,
UseOpenCL -> opencl,
UseDGFE -> OptionValue[DGFE],
+ UseCaKernel -> OptionValue[CaKernel],
InheritedImplementations -> inheritedImplementations,
InheritedKeywordParameters -> inheritedKeywordParameters,
ExtendedKeywordParameters -> extendedKeywordParameters,
@@ -1474,3 +1476,10 @@ Test[
TestID->"McLachlanDGFE"
]
+Test[
+ createCode[4, False, True , 3, 1, "BSSN", True, False, CaKernel -> True];
+ ,
+ Null
+ ,
+ TestID->"McLachlanCaKernel"
+]