Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt > Struct Template Reference

#include <AMReX_ParticleTile.H>

Inheritance diagram for amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >:
amrex::SoAParticleBase

Public Types

using StorageParticleType = SoAParticleBase
using ConstPTD = ConstParticleTileData<SoAParticleBase, NArrayReal, NArrayInt>
using RealType = ParticleReal
using IntType = int

Public Member Functions

__host__ __device__ ConstSoAParticle (ConstPTD const &ptd, long i)
__host__ __device__ ConstParticleCPUWrapper cpu () const
__host__ __device__ ConstParticleIDWrapper id () const
__host__ __device__ RealVect pos () const &
__host__ __device__ const RealType & pos (int position_index) const &

Static Public Member Functions

static Long NextID ()
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 int NArrayReal = T_NArrayReal
static constexpr int NArrayInt = T_NArrayInt
static constexpr bool is_soa_particle = true
static constexpr bool is_rtsoa_particle = false
static constexpr bool is_constsoa_particle = true
Static Public Attributes inherited from amrex::SoAParticleBase
static constexpr int NReal =0
static constexpr int NInt =0
static constexpr bool is_soa_particle = true
static constexpr bool is_rtsoa_particle = false

Member Typedef Documentation

◆ ConstPTD

template<int T_NArrayReal, int T_NArrayInt>
using amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::ConstPTD = ConstParticleTileData<SoAParticleBase, NArrayReal, NArrayInt>

◆ IntType

template<int T_NArrayReal, int T_NArrayInt>
using amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::IntType = int

◆ RealType

template<int T_NArrayReal, int T_NArrayInt>
using amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::RealType = ParticleReal

◆ StorageParticleType

template<int T_NArrayReal, int T_NArrayInt>
using amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::StorageParticleType = SoAParticleBase

Constructor & Destructor Documentation

◆ ConstSoAParticle()

template<int T_NArrayReal, int T_NArrayInt>
__host__ __device__ amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::ConstSoAParticle ( ConstPTD const & ptd,
long i )
inline

Member Function Documentation

◆ cpu()

template<int T_NArrayReal, int T_NArrayInt>
__host__ __device__ ConstParticleCPUWrapper amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::cpu ( ) const
inlinenodiscard

◆ id()

template<int T_NArrayReal, int T_NArrayInt>
__host__ __device__ ConstParticleIDWrapper amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::id ( ) const
inlinenodiscard

◆ NextID() [1/2]

template<int T_NArrayReal, int T_NArrayInt>
Long amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::NextID ( )
static

◆ NextID() [2/2]

template<int T_NArrayReal, int T_NArrayInt>
void amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::NextID ( Long nextid)
static

Reset on restart.

Parameters
nextid

◆ pos() [1/2]

template<int T_NArrayReal, int T_NArrayInt>
__host__ __device__ RealVect amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::pos ( ) const &
inlinenodiscard

◆ pos() [2/2]

template<int T_NArrayReal, int T_NArrayInt>
__host__ __device__ const RealType & amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::pos ( int position_index) const &
inlinenodiscard

◆ UnprotectedNextID()

template<int T_NArrayReal, int T_NArrayInt>
Long amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::UnprotectedNextID ( )
static

This version can only be used inside omp critical.

Member Data Documentation

◆ is_constsoa_particle

template<int T_NArrayReal, int T_NArrayInt>
bool amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::is_constsoa_particle = true
staticconstexpr

◆ is_rtsoa_particle

template<int T_NArrayReal, int T_NArrayInt>
bool amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::is_rtsoa_particle = false
staticconstexpr

◆ is_soa_particle

template<int T_NArrayReal, int T_NArrayInt>
bool amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::is_soa_particle = true
staticconstexpr

◆ NArrayInt

template<int T_NArrayReal, int T_NArrayInt>
int amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::NArrayInt = T_NArrayInt
staticconstexpr

◆ NArrayReal

template<int T_NArrayReal, int T_NArrayInt>
int amrex::ConstSoAParticle< T_NArrayReal, T_NArrayInt >::NArrayReal = T_NArrayReal
staticconstexpr

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