Skip to content

Commit

Permalink
CaKernel.m: Map "normal" variables to "bound_" variables for CaKernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhinder committed Feb 5, 2012
1 parent c0a4594 commit d19c2af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tools/CodeGen/CaKernel.m
Expand Up @@ -161,6 +161,11 @@ CCTK_POINTER FUNCTION Device_GetVarI (CCTK_POINTER IN cctkGH, CCTK_INT IN vi, CC
InitFDVariables -> CaKernelInitialiseFDVariables[],
MacroPointer -> False}];

If[!int,

calc2 = calc2 /. {normal1 -> "bound_x", normal2 -> "bound_y", normal3 -> "bound_z"}];


{"#undef KRANC_DIFF_FUNCTIONS\n",
"#define KRANC_" <> ToUpperCase[CodeGenC`SOURCELANGUAGE] <> "\n",
Map[IncludeFile, {"Differencing.h", "GenericFD.h"}],
Expand Down

0 comments on commit d19c2af

Please sign in to comment.