aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Tools/CodeGen/KrancThorn.m9
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