Skip to content

Commit

Permalink
fixup: use older range policy syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
streeve committed Dec 18, 2024
1 parent 539170c commit 00db657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CabanaPD_Particles.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ class Particles<MemorySpace, PMB, TemperatureIndependent, BaseOutput, Dimension>

// This is necessary to avoid Cuda lambda capture issues in the constructor.
template <class ExecSpace, class PositionType, class VolumeType>
void implInitCustomParticles( const ExecSpace& exec_space,
const PositionType& x, const VolumeType& vol )
void implInitCustomParticles( const ExecSpace, const PositionType& x,
const VolumeType& vol )
{
resize( vol.size(), 0 );
auto p_x = sliceReferencePosition();
Expand All @@ -505,7 +505,7 @@ class Particles<MemorySpace, PMB, TemperatureIndependent, BaseOutput, Dimension>
memory_space, typename PositionType::execution_space>::value );

Kokkos::parallel_for(
"copy_to_particles", Kokkos::RangePolicy( exec_space, 0, n_local ),
"copy_to_particles", Kokkos::RangePolicy<ExecSpace>( 0, n_local ),
KOKKOS_LAMBDA( const int pid ) {
// Set the particle position and volume.
// Set everything else to zero.
Expand Down

0 comments on commit 00db657

Please sign in to comment.