From bbd871a99b661df60ea4580c1783c58216c3ee71 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Fri, 24 May 2024 12:21:02 -0400 Subject: [PATCH] fixup: deprecated device type for Cabana --- src/ExaMPM_ParticleInit.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ExaMPM_ParticleInit.hpp b/src/ExaMPM_ParticleInit.hpp index 80a7343..fc846ef 100644 --- a/src/ExaMPM_ParticleInit.hpp +++ b/src/ExaMPM_ParticleInit.hpp @@ -107,14 +107,14 @@ void initializeParticles( const ExecSpace& exec_space, const InitFunctor& create_functor, ParticleList& particles ) { - // Device type. - using device_type = typename ParticleList::device_type; + // Kokkos memory space. + using memory_space = typename ParticleList::memory_space; // Particle type. using particle_type = typename ParticleList::tuple_type; // Create a local mesh. - auto local_mesh = Cabana::Grid::createLocalMesh( local_grid ); + auto local_mesh = Cabana::Grid::createLocalMesh( local_grid ); // Get the local set of owned cell indices. auto owned_cells = local_grid.indexSpace( @@ -128,7 +128,7 @@ void initializeParticles( const ExecSpace& exec_space, particles.resize( num_particles ); // Creation status. - auto particle_created = Kokkos::View( + auto particle_created = Kokkos::View( Kokkos::ViewAllocateWithoutInitializing( "particle_created" ), num_particles );