7 #ifndef WARPX_PARTICLES_PUSHER_COPYPARTICLEATTRIBS_H_
8 #define WARPX_PARTICLES_PUSHER_COPYPARTICLEATTRIBS_H_
50 int a_offset = 0) noexcept
52 if (tmp_particle_data.
size() == 0)
return;
90 amrex::ParticleReal
x,
y,
z;
#define AMREX_FORCE_INLINE
#define AMREX_GPU_HOST_DEVICE
Definition: WarpXParticleContainer.H:52
const std::array< RealVector, PIdx::nattribs > & GetAttribs() const
Definition: WarpXParticleContainer.H:60
amrex::Vector< std::map< PairIndex, TmpParticleTile > > TmpParticles
Definition: WarpXParticleContainer.H:432
std::pair< int, int > GetPairIndex() const
Long size() const noexcept
def y
Definition: Excitation_Flag_Generator.py:76
def x
Formats datastring to remove "+" at the end of the string #####.
Definition: Excitation_Flag_Generator.py:75
def z
Definition: Excitation_Flag_Generator.py:77
i
Definition: check_interp_points_and_weights.py:174
index
Definition: run_automated.py:310
Functor that creates copies of the current particle positions and momenta for later use....
Definition: CopyParticleAttribs.H:22
amrex::ParticleReal *AMREX_RESTRICT uxpold
Definition: CopyParticleAttribs.H:35
const amrex::ParticleReal *AMREX_RESTRICT uxp
Definition: CopyParticleAttribs.H:27
const amrex::ParticleReal *AMREX_RESTRICT uyp
Definition: CopyParticleAttribs.H:28
GetParticlePosition m_get_position
Definition: CopyParticleAttribs.H:25
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator()(const int i) const noexcept
copy the position and momentum of particle i to the temporary data holder
Definition: CopyParticleAttribs.H:76
amrex::ParticleReal *AMREX_RESTRICT ypold
Definition: CopyParticleAttribs.H:32
CopyParticleAttribs(const WarpXParIter &a_pti, TmpParticles &tmp_particle_data, int a_offset=0) noexcept
Construct a new functor.
Definition: CopyParticleAttribs.H:49
amrex::ParticleReal *AMREX_RESTRICT uzpold
Definition: CopyParticleAttribs.H:37
amrex::ParticleReal *AMREX_RESTRICT uypold
Definition: CopyParticleAttribs.H:36
amrex::ParticleReal *AMREX_RESTRICT xpold
Definition: CopyParticleAttribs.H:31
amrex::ParticleReal *AMREX_RESTRICT zpold
Definition: CopyParticleAttribs.H:33
const amrex::ParticleReal *AMREX_RESTRICT uzp
Definition: CopyParticleAttribs.H:29
CopyParticleAttribs()=default
Functor that can be used to extract the positions of the macroparticles inside a ParallelFor kernel.
Definition: GetAndSetPosition.H:53
@ uz
Definition: NamedComponentParticleContainer.H:25
@ uy
Definition: NamedComponentParticleContainer.H:25
@ ux
Definition: NamedComponentParticleContainer.H:25
@ uzold
Definition: WarpXParticleContainer_fwd.H:38
@ yold
Definition: WarpXParticleContainer_fwd.H:38
@ xold
Definition: WarpXParticleContainer_fwd.H:37
@ zold
Definition: WarpXParticleContainer_fwd.H:38
@ uyold
Definition: WarpXParticleContainer_fwd.H:38
@ uxold
Definition: WarpXParticleContainer_fwd.H:38