Skip to content

Commit

Permalink
fixup: type mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Aug 31, 2023
1 parent d9d4a53 commit 4eadd51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CabanaPD_Particles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,9 @@ class Particles<DeviceType, PMB, Dimension>
Kokkos::parallel_reduce(
"CabanaPD::Particles::min_max_positions",
Kokkos::RangePolicy<ExecSpace>( exec_space, 0, n_local ),
KOKKOS_LAMBDA( const int i, int& min_x, int& min_y, int& min_z,
int& max_x, int& max_y, int& max_z ) {
KOKKOS_LAMBDA( const int i, double& min_x, double& min_y,
double& min_z, double& max_x, double& max_y,
double& max_z ) {
if ( x( i, 0 ) > max_x )
max_x = x( i, 0 );
else if ( x( i, 0 ) < min_x )
Expand Down

0 comments on commit 4eadd51

Please sign in to comment.