aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen/CalculationFunction.m
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/CodeGen/CalculationFunction.m')
-rw-r--r--Tools/CodeGen/CalculationFunction.m6
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],