Skip to content

Commit

Permalink
fixed discrepancy CPU and GPU
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido Novati committed Jun 2, 2020
1 parent 9c00f8f commit 3272540
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/poisson/PoissonSolverACC_kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ void _analysis_filter_kernel( acc_c*const __restrict__ Uhat,
// to hold also tke, eps and tau
atomicAdd(reductionBuf + 4 + binID, E);
}
if (k2 > 0 && kind < nyquist*nyquist) {
if (k2 > 0 && kind < 3.5) {
// filter starts at k = 2 * 2 pi / L
// 0.5 added to ensure inclusion of 1^2 + 1^2 + 1^2
tkeFiltered += E;
} else {
Uhat[ind][0] = 0; Uhat[ind][1] = 0;
Expand Down

0 comments on commit 3272540

Please sign in to comment.