aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/KrancThorn.m
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2013-09-13 16:33:45 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2013-09-13 16:33:45 +0200
commit9ec08a2c201a8b67fb5d095f665e86ef80a16bea (patch)
treea2e147825a6ed0b2f694ef3d853229f9902aecaf /Tools/CodeGen/KrancThorn.m
parent39ed843346a337c4e1e8687f9f802a34367108ba (diff)
Move parameter checking code processing from KrancThorn.m to ParamCheck.m
Diffstat (limited to 'Tools/CodeGen/KrancThorn.m')
-rw-r--r--Tools/CodeGen/KrancThorn.m7
1 files changed, 1 insertions, 6 deletions
diff --git a/Tools/CodeGen/KrancThorn.m b/Tools/CodeGen/KrancThorn.m
index c8bf952..e684f2b 100644
--- a/Tools/CodeGen/KrancThorn.m
+++ b/Tools/CodeGen/KrancThorn.m
@@ -334,12 +334,7 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[
Add parameter check source file
------------------------------------------------------------------------ *)
- If[Length[OptionValue[ParameterConditions]] > 0,
- c = AppendObjectField[
- c, "Sources",
- {Filename -> "ParamCheck.cc",
- Contents -> ParameterCheckSource[GetObjectField[c, "Name"],
- OptionValue[ParameterConditions]]}]];
+ c = ParamCheckProcessCode[c, opts];
(* ------------------------------------------------------------------------
Create finite differencing header file