Loading w-stacking_omp.c +7 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ #include <cuda_runtime.h> #endif /* WARNING */ #if defined (_OPENMP) && (ACCOMP) #pragma omp declare target Loading Loading @@ -84,8 +86,10 @@ void wstack( double pos_u = uu[i] / dx; double pos_v = vv[i] / dx; double ww_i = ww[i] / dw; //Renormalization of ww_i //Renormalization of ww_i to avoid out of bounds ww_i = ww_i/(1+num_w_planes); int grid_w = (int)ww_i; int grid_u = (int)pos_u; int grid_v = (int)pos_v; Loading Loading
w-stacking_omp.c +7 −3 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ #include <cuda_runtime.h> #endif /* WARNING */ #if defined (_OPENMP) && (ACCOMP) #pragma omp declare target Loading Loading @@ -84,8 +86,10 @@ void wstack( double pos_u = uu[i] / dx; double pos_v = vv[i] / dx; double ww_i = ww[i] / dw; //Renormalization of ww_i //Renormalization of ww_i to avoid out of bounds ww_i = ww_i/(1+num_w_planes); int grid_w = (int)ww_i; int grid_u = (int)pos_u; int grid_v = (int)pos_v; Loading