@@ -202,7 +202,7 @@ struct ParticleTileData
202202 }
203203};
204204
205- // SOA Particle Structure
205+ // SOA Particle Structure
206206template <int T_NArrayReal, int T_NArrayInt>
207207struct SoAParticle : SoAParticleBase
208208{
@@ -217,37 +217,25 @@ struct SoAParticle : SoAParticleBase
217217
218218 static Long the_next_id;
219219
220- SoAParticle (PTD ptd, int const index)
220+ SoAParticle (PTD ptd, int const index)
221221 {
222222 m_particle_tile_data=ptd;
223223 m_index=index;
224224 }
225-
225+
226226 // functions to get id and cpu in the SOA data
227227
228228 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
229- ParticleCPUWrapper cpu () & {
230- uint64_t unsigned_cpu_value;
231- unsigned_cpu_value = (uint64_t ) this ->m_particle_tile_data .m_idata [1 ][m_index];
232- return ParticleCPUWrapper (unsigned_cpu_value); }
229+ int & cpu () & { return this ->m_particle_tile_data .m_idata [1 ][m_index]; }
233230
234231 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
235- ParticleIDWrapper id () & {
236- uint64_t unsigned_id_value;
237- unsigned_id_value = (uint64_t ) this ->m_particle_tile_data .m_idata [0 ][m_index];
238- return ParticleIDWrapper (unsigned_id_value); }
232+ int & id () & { return this ->m_particle_tile_data .m_idata [0 ][m_index]; }
239233
240234 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
241- ConstParticleCPUWrapper cpu () const & {
242- uint64_t unsigned_cpu_value;
243- unsigned_cpu_value = (uint64_t ) this ->m_particle_tile_data .m_idata [1 ][m_index];
244- return ConstParticleCPUWrapper (unsigned_cpu_value); }
235+ const int & cpu () const & { return this ->m_particle_tile_data .m_idata [1 ][m_index]; }
245236
246237 AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
247- ConstParticleIDWrapper id () const & {
248- uint64_t unsigned_id_value;
249- unsigned_id_value = (uint64_t ) this ->m_particle_tile_data .m_idata [0 ][m_index];
250- return ConstParticleIDWrapper (unsigned_id_value); }
238+ const int & id () const & { return this ->m_particle_tile_data .m_idata [0 ][m_index]; }
251239
252240 // functions to get positions of the particle in the SOA data
253241
0 commit comments