ImpactX
Public Types | Public Member Functions | Static Public Attributes | List of all members
impactx::None Struct Reference

#include <None.H>

Inheritance diagram for impactx::None:
impactx::elements::Thin

Public Types

using PType = ImpactXParticleContainer::ParticleType
 

Public Member Functions

 None ()
 
void operator() (ImpactXParticleContainer::iterator &, RefPart &AMREX_RESTRICT)
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() ([[maybe_unused]] PType &AMREX_RESTRICT p, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT px, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT py, [[maybe_unused]] amrex::ParticleReal &AMREX_RESTRICT pt, [[maybe_unused]] RefPart const &refpart) const
 
- Public Member Functions inherited from impactx::elements::Thin
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void operator() ([[maybe_unused]] RefPart &AMREX_RESTRICT refpart) const
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int nslice () const
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE amrex::ParticleReal ds () const
 

Static Public Attributes

static constexpr auto name = "None"
 

Member Typedef Documentation

◆ PType

Constructor & Destructor Documentation

◆ None()

impactx::None::None ( )
inline

This element does nothing.

Member Function Documentation

◆ operator()() [1/2]

void impactx::None::operator() ( ImpactXParticleContainer::iterator ,
RefPart AMREX_RESTRICT 
)
inline

Push all particles - nothing to do here

◆ operator()() [2/2]

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void impactx::None::operator() ( [[maybe_unused] ] PType &AMREX_RESTRICT  p,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  px,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  py,
[[maybe_unused] ] amrex::ParticleReal &AMREX_RESTRICT  pt,
[[maybe_unused] ] RefPart const &  refpart 
) const
inline

Does nothing to a particle.

Parameters
pParticle AoS data for positions and cpu/id
pxparticle momentum in x
pyparticle momentum in y
ptparticle momentum in t
refpartreference particle

Member Data Documentation

◆ name

constexpr auto impactx::None::name = "None"
static

The documentation for this struct was generated from the following file: