|
WarpX
|
Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel. More...
#include <GetAndSetPosition.H>
Public Types | |
| using | PType = WarpXParticleContainer::ParticleType |
| using | RType = amrex::ParticleReal |
Public Member Functions | |
| SetParticlePosition (WarpXParIter &a_pti, int a_offset=0) noexcept | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | operator() (const int 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... | |
Public Attributes | |
| PType *AMREX_RESTRICT | m_structs |
| RType *AMREX_RESTRICT | m_theta |
Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel.
| a_pti | iterator to the tile being modified |
| a_offset | offset to apply to the particle indices |
| using SetParticlePosition::RType = amrex::ParticleReal |
|
inlinenoexcept |
|
inlinenoexcept |
Set the position of the particle at index i + a_offset to x, y, z
| PType* AMREX_RESTRICT SetParticlePosition::m_structs |
| RType* AMREX_RESTRICT SetParticlePosition::m_theta |
1.8.13