diff options
Diffstat (limited to 'ML_WaveToy_CL/src/WT_CL_RHS.cc')
-rw-r--r-- | ML_WaveToy_CL/src/WT_CL_RHS.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ML_WaveToy_CL/src/WT_CL_RHS.cc b/ML_WaveToy_CL/src/WT_CL_RHS.cc index 5dbf41d..0e88732 100644 --- a/ML_WaveToy_CL/src/WT_CL_RHS.cc +++ b/ML_WaveToy_CL/src/WT_CL_RHS.cc @@ -100,7 +100,7 @@ static void WT_CL_RHS_Body(cGH const * restrict const cctkGH, int const dir, int "CCTK_LOOP3STR(WT_CL_RHS,\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],\n" - " imin,imax, CCTK_REAL_VEC_SIZE)\n" + " kimin,kimax, CCTK_REAL_VEC_SIZE)\n" "{\n" " ptrdiff_t /*const*/ index CCTK_ATTRIBUTE_UNUSED = di*i + dj*j + dk*k;\n" " \n" @@ -124,7 +124,7 @@ static void WT_CL_RHS_Body(cGH const * restrict const cctkGH, int const dir, int " kadd(PDstandardNth11u,kadd(PDstandardNth22u,PDstandardNth33u));\n" " \n" " /* Copy local copies back to grid functions */\n" - " vec_store_partial_prepare(i,lc_imin,lc_imax);\n" + " vec_store_partial_prepare(i,kimin,kimax);\n" " vec_store_nta_partial(rhorhs[index],rhorhsL);\n" " vec_store_nta_partial(urhs[index],urhsL);\n" "}\n" @@ -143,7 +143,7 @@ static void WT_CL_RHS_Body(cGH const * restrict const cctkGH, int const dir, int char const *const sources[] = {differencing, source, NULL}; OpenCLRunTime_CallKernel(cctkGH, CCTK_THORNSTRING, "WT_CL_RHS", sources, groups, NULL, NULL, NULL, -1, - imin, imax, &kernel); + kimin, kimax, &kernel); } |