|
WarpX
|
Functor that can be used to extract 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 | |
| GetParticlePosition ()=default | |
| GetParticlePosition (const 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 |
Extract the cartesian position coordinates of the particle located at index i + a_offset and store them in the variables x, y, z More... | |
Public Attributes | |
| const PType *AMREX_RESTRICT | m_structs = nullptr |
| const RType * | m_theta = nullptr |
Functor that can be used to extract the positions of the macroparticles inside a ParallelFor kernel.
| a_pti | iterator to the tile containing the macroparticles |
| a_offset | offset to apply to the particle indices |
| using GetParticlePosition::RType = amrex::ParticleReal |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
Extract the cartesian position coordinates of the particle located at index i + a_offset and store them in the variables x, y, z
| const PType* AMREX_RESTRICT GetParticlePosition::m_structs = nullptr |
| const RType* GetParticlePosition::m_theta = nullptr |
1.8.13