diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-04-25 20:46:28 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-04-25 20:48:50 +0200 |
commit | 91ecd87b84d07ebbb62467332316eb359ec8b6ce (patch) | |
tree | f8e5f9ef9c5dd388022f4b7ec24c18ff350f98d4 /Tools/CodeGen/CalculationFunction.m | |
parent | e1ba03bc66489a9ba0c11a63c7433e3f685b14b6 (diff) |
Calculate mixed derivatives as repeated first derivatives
This is controlled by a new calculation option SeparatedDerivatives2. It reduces the number of floating point operations and converts a large 2D stencil into a 1D stencil. This is possible when the first derivatives are stored in grid functions, and then they are computed in ghost zones. This is currently only true for CaKernel, not for the standard CPU code.
Diffstat (limited to 'Tools/CodeGen/CalculationFunction.m')
-rw-r--r-- | Tools/CodeGen/CalculationFunction.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/CodeGen/CalculationFunction.m b/Tools/CodeGen/CalculationFunction.m index d6d1b05..74591b4 100644 --- a/Tools/CodeGen/CalculationFunction.m +++ b/Tools/CodeGen/CalculationFunction.m @@ -145,7 +145,8 @@ VerifyCalculation[calc_] := Shorthands, ConditionalOnKeyword, Before, After, ConditionalOnTextuals, Where, ConditionalOnKeywords, CollectList, AllowedSymbols, ApplyBCs, Conditional, CachedVariables, SplitBy, - SeparatedDerivatives, LocalGroups, NoSimplify, UseDGFE, SimpleCode, UseCaKernel, + SeparatedDerivatives, SeparatedDerivatives2, + LocalGroups, NoSimplify, UseDGFE, SimpleCode, UseCaKernel, ScheduleGroups}; usedKeys = Map[First, calc]; |