The struct used to store particles. More...
#include <AMReX_Particle.H>
Public Types | |
using | StorageParticleType = Particle |
using | ConstType = Particle const |
using | RealType = ParticleReal |
The floating point type used for the particles. | |
Static Public Member Functions | |
static Long | NextID () |
Returns the next particle ID for this processor. Particle IDs start at 1 and are never reused. The pair, consisting of the ID and the CPU on which the particle is "born", is a globally unique identifier for a particle. The maximum of this value across all processors must be checkpointed and then restored on restart so that we don't reuse particle IDs. | |
static Long | UnprotectedNextID () |
This version can only be used inside omp critical. | |
static void | NextID (Long nextid) |
Reset on restart. | |
Static Public Attributes | |
static constexpr bool | is_soa_particle = false |
static constexpr int | NReal = T_NReal |
number of extra Real components in the particle struct | |
static constexpr int | NInt = T_NInt |
number of extra integer components in the particle struct | |
static Long | the_next_id = 1 |
Additional Inherited Members | |
![]() | |
T | m_pos [AMREX_SPACEDIM] |
T | m_rdata [NReal] |
uint64_t | m_idcpu = 0 |
int | m_idata [NInt] |
The struct used to store particles.
T_NReal | The number of extra Real components |
T_NInt | The number of extra integer components |
using amrex::Particle< T_NReal, T_NInt >::ConstType = Particle const |
using amrex::Particle< T_NReal, T_NInt >::RealType = ParticleReal |
The floating point type used for the particles.
using amrex::Particle< T_NReal, T_NInt >::StorageParticleType = Particle |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
static |
Returns the next particle ID for this processor. Particle IDs start at 1 and are never reused. The pair, consisting of the ID and the CPU on which the particle is "born", is a globally unique identifier for a particle. The maximum of this value across all processors must be checkpointed and then restored on restart so that we don't reuse particle IDs.
|
static |
Reset on restart.
nextid |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
This version can only be used inside omp critical.
|
staticconstexpr |
|
staticconstexpr |
number of extra integer components in the particle struct
|
staticconstexpr |
number of extra Real components in the particle struct
|
static |