Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::ParticleTileRT< RType, IType > Struct Template Reference

#include <AMReX_ParticleTileRT.H>

Public Types

using ParticleType = RTSoAParticle<RType, IType>
using RealType = RType
using IntType = IType
using ParticleTileDataType = ParticleTileDataRT<RType, IType>
using ConstParticleTileDataType = ParticleTileDataRT<const RType, const IType>
using size_type = typename ParticleTileDataType::size_type
using AoS = ThisParticleTileHasNoAoS
using SoA = ParticleTileRT<RType, IType>
using RealVector = ArrayView<RType>
using IntVector = ArrayView<IType>

Public Member Functions

 ParticleTileRT ()=default
 ~ParticleTileRT ()=default
 ParticleTileRT (ParticleTileRT const &)=delete
 ParticleTileRT (ParticleTileRT &&) noexcept=default
ParticleTileRT & operator= (ParticleTileRT const &)=delete
ParticleTileRT & operator= (ParticleTileRT &&) noexcept=default
void define (int a_num_real_comps, int a_num_int_comps, std::vector< std::string > *a_rdata_names=nullptr, std::vector< std::string > *a_idata_names=nullptr, Arena *a_arena=nullptr)
bool empty () const
size_type size () const
 Returns the number of particles.
size_type numParticles () const
 Returns the number of particles.
size_type numRealParticles () const
 Returns the number of particles.
size_type numNeighborParticles () const
 Returns the number of neighbor particles. For ParticleTileRT this is always zero.
size_type numTotalParticles () const
 Returns the number of particles.
size_type getNumNeighbors () const
 Returns the number of neighbor particles. For ParticleTileRT this is always zero.
int NumRealComps () const noexcept
int NumIntComps () const noexcept
int NumRuntimeRealComps () const noexcept
int NumRuntimeIntComps () const noexcept
std::vector< std::string > GetRealNames () const
std::vector< std::string > GetIntNames () const
ArrayView< uint64_t > GetIdCPUData ()
ArrayView< const uint64_t > GetIdCPUData () const
ArrayView< RType > GetRealData (int comp_index)
ArrayView< const RType > GetRealData (int comp_index) const
ArrayView< IType > GetIntData (int comp_index)
ArrayView< const IType > GetIntData (int comp_index) const
ArrayView< RType > GetRealData (std::string const &name)
ArrayView< const RType > GetRealData (std::string const &name) const
ArrayView< IType > GetIntData (std::string const &name)
ArrayView< const IType > GetIntData (std::string const &name) const
void resize (size_type new_size, GrowthStrategy strategy=GrowthStrategy::Poisson)
void reserve (size_type new_capacity, GrowthStrategy strategy=GrowthStrategy::Poisson)
void realloc_and_move (size_type new_size, size_type new_capacity, int new_n_real, int new_n_int)
void shrink_to_fit ()
size_type capacity () const
void swap (ParticleTileRT< RType, IType > &other) noexcept
ParticleTileDataType getParticleTileData ()
ConstParticleTileDataType getConstParticleTileData () const
auto & GetStructOfArrays ()
const auto & GetStructOfArrays () const
Arena * arena () const

Static Public Member Functions

static void reserve (std::map< ParticleTileRT< RType, IType > *, int > const &addsizes)

Member Typedef Documentation

◆ AoS

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::AoS = ThisParticleTileHasNoAoS

◆ ConstParticleTileDataType

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::ConstParticleTileDataType = ParticleTileDataRT<const RType, const IType>

◆ IntType

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::IntType = IType

◆ IntVector

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::IntVector = ArrayView<IType>

◆ ParticleTileDataType

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::ParticleTileDataType = ParticleTileDataRT<RType, IType>

◆ ParticleType

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::ParticleType = RTSoAParticle<RType, IType>

◆ RealType

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::RealType = RType

◆ RealVector

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::RealVector = ArrayView<RType>

◆ size_type

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::size_type = typename ParticleTileDataType::size_type

◆ SoA

template<class RType = ParticleReal, class IType = int>
using amrex::ParticleTileRT< RType, IType >::SoA = ParticleTileRT<RType, IType>

Constructor & Destructor Documentation

◆ ParticleTileRT() [1/3]

template<class RType = ParticleReal, class IType = int>
amrex::ParticleTileRT< RType, IType >::ParticleTileRT ( )
default

◆ ~ParticleTileRT()

template<class RType = ParticleReal, class IType = int>
amrex::ParticleTileRT< RType, IType >::~ParticleTileRT ( )
default

◆ ParticleTileRT() [2/3]

template<class RType = ParticleReal, class IType = int>
amrex::ParticleTileRT< RType, IType >::ParticleTileRT ( ParticleTileRT< RType, IType > const & )
delete

◆ ParticleTileRT() [3/3]

template<class RType = ParticleReal, class IType = int>
amrex::ParticleTileRT< RType, IType >::ParticleTileRT ( ParticleTileRT< RType, IType > && )
defaultnoexcept

Member Function Documentation

◆ arena()

template<class RType = ParticleReal, class IType = int>
Arena * amrex::ParticleTileRT< RType, IType >::arena ( ) const
inlinenodiscard

◆ capacity()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::capacity ( ) const
inlinenodiscard

◆ define()

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::define ( int a_num_real_comps,
int a_num_int_comps,
std::vector< std::string > * a_rdata_names = nullptr,
std::vector< std::string > * a_idata_names = nullptr,
Arena * a_arena = nullptr )
inline

◆ empty()

template<class RType = ParticleReal, class IType = int>
bool amrex::ParticleTileRT< RType, IType >::empty ( ) const
inlinenodiscard

◆ getConstParticleTileData()

template<class RType = ParticleReal, class IType = int>
ConstParticleTileDataType amrex::ParticleTileRT< RType, IType >::getConstParticleTileData ( ) const
inlinenodiscard

◆ GetIdCPUData() [1/2]

template<class RType = ParticleReal, class IType = int>
ArrayView< uint64_t > amrex::ParticleTileRT< RType, IType >::GetIdCPUData ( )
inlinenodiscard

Get access to the particle id/cpu Arrays

◆ GetIdCPUData() [2/2]

template<class RType = ParticleReal, class IType = int>
ArrayView< const uint64_t > amrex::ParticleTileRT< RType, IType >::GetIdCPUData ( ) const
inlinenodiscard

Get access to the particle id/cpu Arrays

◆ GetIntData() [1/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< IType > amrex::ParticleTileRT< RType, IType >::GetIntData ( int comp_index)
inlinenodiscard

Get access to a particle Int component Array

Parameters
comp_indexcomponent with 0...NumIntComps-1

◆ GetIntData() [2/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< const IType > amrex::ParticleTileRT< RType, IType >::GetIntData ( int comp_index) const
inlinenodiscard

Get access to a particle Int component Array

Parameters
comp_indexcomponent with 0...NumIntComps-1

◆ GetIntData() [3/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< IType > amrex::ParticleTileRT< RType, IType >::GetIntData ( std::string const & name)
inlinenodiscard

Get access to a particle Int component Array

Parameters
namename of the component

◆ GetIntData() [4/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< const IType > amrex::ParticleTileRT< RType, IType >::GetIntData ( std::string const & name) const
inlinenodiscard

Get access to a particle Int component Array

Parameters
namename of the component

◆ GetIntNames()

template<class RType = ParticleReal, class IType = int>
std::vector< std::string > amrex::ParticleTileRT< RType, IType >::GetIntNames ( ) const
inlinenodiscard

Get the names for the int SoA components

◆ getNumNeighbors()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::getNumNeighbors ( ) const
inlinenodiscard

Returns the number of neighbor particles. For ParticleTileRT this is always zero.

◆ getParticleTileData()

template<class RType = ParticleReal, class IType = int>
ParticleTileDataType amrex::ParticleTileRT< RType, IType >::getParticleTileData ( )
inlinenodiscard

◆ GetRealData() [1/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< RType > amrex::ParticleTileRT< RType, IType >::GetRealData ( int comp_index)
inlinenodiscard

Get access to a particle Real component Array

Parameters
comp_indexcomponent with 0...NumRealComps-1

◆ GetRealData() [2/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< const RType > amrex::ParticleTileRT< RType, IType >::GetRealData ( int comp_index) const
inlinenodiscard

Get access to a particle Real component Array

Parameters
comp_indexcomponent with 0...NumRealComps-1

◆ GetRealData() [3/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< RType > amrex::ParticleTileRT< RType, IType >::GetRealData ( std::string const & name)
inlinenodiscard

Get access to a particle Real component Array

Parameters
namename of the component

◆ GetRealData() [4/4]

template<class RType = ParticleReal, class IType = int>
ArrayView< const RType > amrex::ParticleTileRT< RType, IType >::GetRealData ( std::string const & name) const
inlinenodiscard

Get access to a particle Real component Array

Parameters
namename of the component

◆ GetRealNames()

template<class RType = ParticleReal, class IType = int>
std::vector< std::string > amrex::ParticleTileRT< RType, IType >::GetRealNames ( ) const
inlinenodiscard

Get the names for the real SoA components

◆ GetStructOfArrays() [1/2]

template<class RType = ParticleReal, class IType = int>
auto & amrex::ParticleTileRT< RType, IType >::GetStructOfArrays ( )
inlinenodiscard

◆ GetStructOfArrays() [2/2]

template<class RType = ParticleReal, class IType = int>
const auto & amrex::ParticleTileRT< RType, IType >::GetStructOfArrays ( ) const
inlinenodiscard

◆ NumIntComps()

template<class RType = ParticleReal, class IType = int>
int amrex::ParticleTileRT< RType, IType >::NumIntComps ( ) const
inlinenodiscardnoexcept

◆ numNeighborParticles()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::numNeighborParticles ( ) const
inlinenodiscard

Returns the number of neighbor particles. For ParticleTileRT this is always zero.

◆ numParticles()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::numParticles ( ) const
inlinenodiscard

Returns the number of particles.

◆ NumRealComps()

template<class RType = ParticleReal, class IType = int>
int amrex::ParticleTileRT< RType, IType >::NumRealComps ( ) const
inlinenodiscardnoexcept

◆ numRealParticles()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::numRealParticles ( ) const
inlinenodiscard

Returns the number of particles.

◆ NumRuntimeIntComps()

template<class RType = ParticleReal, class IType = int>
int amrex::ParticleTileRT< RType, IType >::NumRuntimeIntComps ( ) const
inlinenodiscardnoexcept

◆ NumRuntimeRealComps()

template<class RType = ParticleReal, class IType = int>
int amrex::ParticleTileRT< RType, IType >::NumRuntimeRealComps ( ) const
inlinenodiscardnoexcept

◆ numTotalParticles()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::numTotalParticles ( ) const
inlinenodiscard

Returns the number of particles.

◆ operator=() [1/2]

template<class RType = ParticleReal, class IType = int>
ParticleTileRT & amrex::ParticleTileRT< RType, IType >::operator= ( ParticleTileRT< RType, IType > && )
defaultnoexcept

◆ operator=() [2/2]

template<class RType = ParticleReal, class IType = int>
ParticleTileRT & amrex::ParticleTileRT< RType, IType >::operator= ( ParticleTileRT< RType, IType > const & )
delete

◆ realloc_and_move()

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::realloc_and_move ( size_type new_size,
size_type new_capacity,
int new_n_real,
int new_n_int )
inline

◆ reserve() [1/2]

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::reserve ( size_type new_capacity,
GrowthStrategy strategy = GrowthStrategy::Poisson )
inline

◆ reserve() [2/2]

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::reserve ( std::map< ParticleTileRT< RType, IType > *, int > const & addsizes)
inlinestatic

◆ resize()

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::resize ( size_type new_size,
GrowthStrategy strategy = GrowthStrategy::Poisson )
inline

◆ shrink_to_fit()

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::shrink_to_fit ( )
inline

◆ size()

template<class RType = ParticleReal, class IType = int>
size_type amrex::ParticleTileRT< RType, IType >::size ( ) const
inlinenodiscard

Returns the number of particles.

◆ swap()

template<class RType = ParticleReal, class IType = int>
void amrex::ParticleTileRT< RType, IType >::swap ( ParticleTileRT< RType, IType > & other)
inlinenoexcept

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