diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-24 21:32:34 -0600 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-01-24 21:32:34 -0600 |
commit | 52ad7fafc418fc025f94111c8028f8ee9c7cb8d4 (patch) | |
tree | 5f7247af2b95c2b09910e09be2894d8f8fcd3fef /Tools/CodeGen/CalculationFunction.m | |
parent | 04dc4644b0230d54013507af0258d151e06bd08d (diff) |
Pull out the generation of the calculation body function definition into a calculation member function
This allows it to be customized based on the target type.
Diffstat (limited to 'Tools/CodeGen/CalculationFunction.m')
-rw-r--r-- | Tools/CodeGen/CalculationFunction.m | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Tools/CodeGen/CalculationFunction.m b/Tools/CodeGen/CalculationFunction.m index 8492389..be9ec84 100644 --- a/Tools/CodeGen/CalculationFunction.m +++ b/Tools/CodeGen/CalculationFunction.m @@ -491,11 +491,7 @@ DefFn[ InfoMessage[InfoFull,"Generating function"]; { - DefineFunction[bodyFunctionName, "static void", "cGH const * restrict const cctkGH, int const dir, int const face, CCTK_REAL const normal[3], CCTK_REAL const tangentA[3], CCTK_REAL const tangentB[3], int const imin[3], int const imax[3], int const n_subblock_gfs, CCTK_REAL * restrict const subblock_gfs[]", - { - "DECLARE_CCTK_ARGUMENTS;\n", - "DECLARE_CCTK_PARAMETERS;\n\n", - + lookup[calcp,BodyFunction][{ (* OpenCL kernel prologue *) (* We could (or probably should) write this into a source file of its own *) If[OptionValue[UseOpenCL], |