Skip to content

Commit bf4c165

Browse files
authored
Update motionsim.cpp
1 parent 7b9685a commit bf4c165

File tree

1 file changed

+2
-2
lines changed
  • DirectProgramming/C++SYCL/StructuredGrids/particle-diffusion/src

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ void CPUParticleMotion(const int seed, float* particle_X, float* particle_Y,
8484
// integer value from floating point value to get just the
8585
// decimal portion. Use this value to later determine if the
8686
// particle is inside or outside of the cell
87-
float dX = fabs(particle_X[p] - sycl::round(particle_X[p]));
88-
float dY = fabs(particle_Y[p] - sycl::round(particle_Y[p]));
87+
float dX = sycl::fabs(particle_X[p] - sycl::round(particle_X[p]));
88+
float dY = sycl::fabs(particle_Y[p] - sycl::round(particle_Y[p]));
8989
/* Grid point indices closest the particle, defined by the following:
9090
------------------------------------------------------------------
9191
| Condition | Result |

0 commit comments

Comments
 (0)