Skip to content

Commit 9f0fe8b

Browse files
committed
Fix particle-diffusion sample
1 parent 21c5558 commit 9f0fe8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src/motionsim_kernel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ template <typename AccRandom, typename AccGrid, bool HasFp64> class ParticleMoti
5555
// integer value from floating point value to get just the
5656
// decimal portion. Use this value to later determine if the
5757
// particle is inside or outside of the cell
58-
float dX = sycl::abs(particle_X_a[p] - sycl::round(particle_X_a[p]));
59-
float dY = sycl::abs(particle_Y_a[p] - sycl::round(particle_Y_a[p]));
58+
float dX = std::abs(particle_X_a[p] - sycl::round(particle_X_a[p]));
59+
float dY = std::abs(particle_Y_a[p] - sycl::round(particle_Y_a[p]));
6060
/* Grid point indices closest the particle, defined by the following:
6161
------------------------------------------------------------------
6262
| Condition | Result |

0 commit comments

Comments
 (0)