diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-01-15 19:43:02 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-01-15 19:43:02 -0500 |
commit | 784a060e6c538f4c0b83f4b537c1c6d7811053f9 (patch) | |
tree | b64c6b43847c4e298735a918872efbd5af4bdd59 /Tools/CodeGen/CodeGenCactus.m | |
parent | a030bb37d754dc204504cc69e1b5e79b3f7d9886 (diff) |
Use CCTK_ macros instead of LC_ macros for looping
Diffstat (limited to 'Tools/CodeGen/CodeGenCactus.m')
-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 *) ""]]; |