diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-01-15 19:43:02 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-01-16 22:12:36 -0500 |
commit | d1db3872dae1d5ca475a387a07f1bd9a33015798 (patch) | |
tree | 63711b3d8b341ab3157eada23c04cb1e58240b6e /Tools/CodeGen | |
parent | ef0e9bb99b7ff9ad5a30b38f853f7d3e68cbb4f4 (diff) |
Use CCTK_ macros instead of LC_ macros for looping
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r-- | Tools/CodeGen/CodeGenCactus.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/CodeGen/CodeGenCactus.m b/Tools/CodeGen/CodeGenCactus.m index 6dc1798..3117b12 100644 --- a/Tools/CodeGen/CodeGenCactus.m +++ b/Tools/CodeGen/CodeGenCactus.m @@ -385,11 +385,11 @@ DefFn[ CommentedBlock[ "Loop over the grid points", {"#pragma omp parallel\n", - If[vectorise, "LC_LOOP3VEC", "CCTK_LOOP3"], + If[vectorise, "CCTK_LOOP3STR", "CCTK_LOOP3"], "(", functionName, ",\n", " i,j,k, imin[0],imin[1],imin[2], imax[0],imax[1],imax[2],\n", " cctk_ash[0],cctk_ash[1],cctk_ash[2]", - If[vectorise, {",\n", " CCTK_REAL_VEC_SIZE"}, ""], + If[vectorise, {",\n", " imin,imax, CCTK_REAL_VEC_SIZE"}, ""], ")\n", "{\n", IndentBlock[ @@ -397,7 +397,7 @@ DefFn[ (* DeclareAssignVariable["int", "index", "CCTK_GFINDEX3D(cctkGH,i,j,k)"], *) DeclareAssignVariable["ptrdiff_t", "index", "di*i + dj*j + dk*k"], block}], "}\n", - If[vectorise, "LC_ENDLOOP3VEC", "CCTK_ENDLOOP3"] <> "(", functionName, ");\n"}], + If[vectorise, "CCTK_ENDLOOP3STR", "CCTK_ENDLOOP3"] <> "(", functionName, ");\n"}], (* else *) ""]]; |