diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 16:21:09 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2013-09-12 16:21:09 +0200 |
commit | 355f69151e9cd5fb984ec40db9b8c78f80723a06 (patch) | |
tree | a61c789cc6604fefba113d7f540a60545cfcaf2a | |
parent | 7cfd3320c89b487c994c95fe2a12adb1288a6fbb (diff) |
KrancThorn.m: Move SummationByParts include file to new SummationByParts section
Also only add this header if needed. Changes ordering of include files in interface.ccl.
-rw-r--r-- | Tools/CodeGen/KrancThorn.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Tools/CodeGen/KrancThorn.m b/Tools/CodeGen/KrancThorn.m index 0a6a919..5ae02dc 100644 --- a/Tools/CodeGen/KrancThorn.m +++ b/Tools/CodeGen/KrancThorn.m @@ -153,6 +153,13 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ calcs = SeparateDerivatives[calcs]; (* ------------------------------------------------------------------------ + SummationByParts thorn + ------------------------------------------------------------------------ *) + + If[Cases[{pddefs}, SBPDerivative[_], Infinity] != {}, + AppendTo[includeFiles, "sbp_calc_coeffs.h"]]; + + (* ------------------------------------------------------------------------ Add groups defined in calculations to thorn groups ------------------------------------------------------------------------ *) @@ -162,7 +169,7 @@ CreateKrancThorn[groupsOrig_, parentDirectory_, thornName_, opts:OptionsPattern[ Add include files ------------------------------------------------------------------------ *) - includeFiles = Join[includeFiles, {"GenericFD.h", "sbp_calc_coeffs.h"}]; + includeFiles = Join[includeFiles, {"GenericFD.h"}]; (* ------------------------------------------------------------------------ Inherited implementations |