Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel.
More...
#include <GetAndSetPosition.H>
|
| using | PType = WarpXParticleContainer::ParticleType |
| |
| using | RType = amrex::ParticleReal |
| |
|
| | 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...
|
| |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | AsStored (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 This is only different for RZ since the input should be (r, theta, z) in that case. More...
|
| |
Functor that can be used to modify the positions of the macroparticles, inside a ParallelFor kernel.
- Parameters
-
| a_pti | iterator to the tile being modified |
| a_offset | offset to apply to the particle indices |
◆ PType
◆ RType
◆ SetParticlePosition()
| SetParticlePosition::SetParticlePosition |
( |
WarpXParIter & |
a_pti, |
|
|
int |
a_offset = 0 |
|
) |
| |
|
inlinenoexcept |
◆ AsStored()
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetParticlePosition::AsStored |
( |
const int |
i, |
|
|
RType |
x, |
|
|
RType |
y, |
|
|
RType |
z |
|
) |
| const |
|
inlinenoexcept |
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.
◆ operator()()
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void SetParticlePosition::operator() |
( |
const int |
i, |
|
|
RType |
x, |
|
|
RType |
y, |
|
|
RType |
z |
|
) |
| const |
|
inlinenoexcept |
Set the position of the particle at index i + a_offset to x, y, z
◆ m_structs
| PType* AMREX_RESTRICT SetParticlePosition::m_structs |
◆ m_theta
| RType* AMREX_RESTRICT SetParticlePosition::m_theta |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/warpx/checkouts/21.10/Source/Particles/Pusher/GetAndSetPosition.H