Skip to content

Commit

Permalink
fix precision bug in LWP accumulation
Browse files Browse the repository at this point in the history
  • Loading branch information
MennoVeerman committed Jul 31, 2024
1 parent 8c2a737 commit f830359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src_kernels_cuda_rt/raytracer_kernels_bw.cu
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ void ray_tracer_kernel_bw(
position.y += grid_size.y;
}

while ((position.z <= grid_size.z - s_eps) && (position.z > s_eps))
while ((position.z <= grid_size.z - s_eps) && (position.z >= s_eps))
{
const int i = float_to_int(position.x, grid_d.x, grid_cells.x);
const int j = float_to_int(position.y, grid_d.y, grid_cells.y);
Expand Down

0 comments on commit f830359

Please sign in to comment.