Commit 8689fa16 authored by Giovanni Lacopo's avatar Giovanni Lacopo
Browse files

Bug NOT fixed

parent a52fc9f3
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@
#include <cuda_runtime.h>
#endif

/* WARNING */

#if defined (_OPENMP) && (ACCOMP)

#pragma omp  declare target
@@ -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;