ianhinder / Kranc

A Mathematica package for generating code for solving time dependent partial differential equations
http://kranccode.org
GNU General Public License v2.0
28 stars 10 forks source link

Recognize option DeclarationIncludes #66

Open tbode opened 12 years ago

tbode commented 12 years ago

Current trunk doesn't recognize the key DeclarationIncludes as a valid option. Trivial fix.

diff --git a/Tools/CodeGen/CalculationFunction.m b/Tools/CodeGen/CalculationFunction.m
index 3612e58..799ee72 100644
--- a/Tools/CodeGen/CalculationFunction.m
+++ b/Tools/CodeGen/CalculationFunction.m
@@ -147,7 +147,7 @@ VerifyCalculation[calc_] :=
          CollectList, AllowedSymbols, ApplyBCs, Conditional, CachedVariables, SplitBy,
          SeparatedDerivatives, SeparatedDerivatives2,
          LocalGroups, NoSimplify, UseDGFE, SimpleCode, UseCaKernel,
-         ScheduleGroups, TriggerGroups};
+         ScheduleGroups, TriggerGroups, DeclarationIncludes};

     usedKeys = Map[First, calc];