Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel.
More...
|
template<typename ptiType > |
| SetParticlePosition (const ptiType &a_pti, long a_offset=0) noexcept |
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() (const long i, RType x, RType y, RType z) const noexcept |
| Set the position of the particle at index i + a_offset to x , y , z More...
|
|
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | AsStored (const long i, RType x, RType y, RType z) const noexcept |
| Set the position of the particle at index i + a_offset to x , y , z This is only different for RZ since the input should be (r, theta, z) in that case. More...
|
|
template<typename T_PIdx = PIdx>
struct SetParticlePosition< T_PIdx >
Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel.
- Template Parameters
-
T_PIdx | particle index enumerator |
- Parameters
-
a_pti | iterator to the tile being modified |
a_offset | offset to apply to the particle indices |