#include <AMReX_StructOfArrays.H>
|
| void | define (int a_num_runtime_real, int a_num_runtime_int, std::vector< std::string > *soa_rdata_names=nullptr, std::vector< std::string > *soa_idata_names=nullptr) |
| |
| int | NumRealComps () const noexcept |
| |
| int | NumIntComps () const noexcept |
| |
| IdCPU & | GetIdCPUData () |
| |
| std::array< RealVector, NReal > & | GetRealData () |
| |
| std::array< IntVector, NInt > & | GetIntData () |
| |
| const IdCPU & | GetIdCPUData () const |
| |
| const std::array< RealVector, NReal > & | GetRealData () const |
| |
| const std::array< IntVector, NInt > & | GetIntData () const |
| |
| std::vector< std::string > | GetRealNames () const |
| |
| std::vector< std::string > | GetIntNames () const |
| |
| RealVector & | GetRealData (const int index) |
| |
| const RealVector & | GetRealData (const int index) const |
| |
| RealVector & | GetRealData (std::string const &name) |
| |
| const RealVector & | GetRealData (std::string const &name) const |
| |
| IntVector & | GetIntData (const int index) |
| |
| const IntVector & | GetIntData (const int index) const |
| |
| IntVector & | GetIntData (std::string const &name) |
| |
| const IntVector & | GetIntData (std::string const &name) const |
| |
| std::size_t | size () const |
| | Returns the total number of particles (real and neighbor)
|
| |
| bool | empty () const |
| | Returns whether the SoA is empty (i.e. has size() == 0)
|
| |
| int | numParticles () const |
| | Returns the number of real particles (excluding neighbors)
|
| |
| int | numRealParticles () const |
| | Returns the number of real particles (excluding neighbors)
|
| |
| int | numNeighborParticles () const |
| | Returns the number of neighbor particles (excluding reals)
|
| |
| int | numTotalParticles () const |
| | Returns the total number of particles (real and neighbor)
|
| |
| void | setNumNeighbors (int num_neighbors) |
| |
| int | getNumNeighbors () const |
| |
| void | resize (size_t count, GrowthStrategy strategy=GrowthStrategy::Poisson) |
| |
| void | reserve (size_t capacity, GrowthStrategy strategy=GrowthStrategy::Poisson) |
| |
| uint64_t * | idcpuarray () |
| |
| GpuArray< ParticleReal *, NReal > | realarray () |
| |
| GpuArray< int *, NInt > | intarray () |
| |
◆ IdCPU
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ IntVector
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ RealVector
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ define()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| void amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::define |
( |
int |
a_num_runtime_real, |
|
|
int |
a_num_runtime_int, |
|
|
std::vector< std::string > * |
soa_rdata_names = nullptr, |
|
|
std::vector< std::string > * |
soa_idata_names = nullptr |
|
) |
| |
|
inline |
◆ empty()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns whether the SoA is empty (i.e. has size() == 0)
◆ GetIdCPUData() [1/2]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ GetIdCPUData() [2/2]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to the particle id/cpu Arrays
◆ GetIntData() [1/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ GetIntData() [2/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to the particle Int Arrays (only compile-time components)
◆ GetIntData() [3/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Int component Array (compile-time and runtime component)
- Parameters
-
| index | component with 0...NInt-1 compile-time and NInt... runtime arguments |
◆ GetIntData() [4/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Int component Array (compile-time and runtime component)
- Parameters
-
| index | component with 0...NInt-1 compile-time and NInt... runtime arguments |
- Returns
◆ GetIntData() [5/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Int component Array (compile-time and runtime component)
- Parameters
-
| name | component names with 0...NInt-1 compile-time and NInt... runtime arguments |
- Returns
◆ GetIntData() [6/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Int component Array (compile-time and runtime component)
- Parameters
-
| name | component names with 0...NInt-1 compile-time and NInt... runtime arguments |
- Returns
◆ GetIntNames()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| std::vector< std::string > amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::GetIntNames |
( |
| ) |
const |
|
inline |
Get the names for the int SoA components
◆ getNumNeighbors()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ GetRealData() [1/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ GetRealData() [2/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to the particle Real Arrays (only compile-time components)
◆ GetRealData() [3/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Real component Array (compile-time and runtime component)
- Parameters
-
| index | component with 0...NReal-1 compile-time and NReal... runtime arguments |
◆ GetRealData() [4/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Real component Array (compile-time and runtime component)
- Parameters
-
| index | component with 0...NReal-1 compile-time and NReal... runtime arguments |
◆ GetRealData() [5/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Real component Array (compile-time and runtime component)
- Parameters
-
| name | named component component with 0...NReal-1 compile-time and NReal... runtime arguments |
◆ GetRealData() [6/6]
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Get access to a particle Real component Array (compile-time and runtime component)
- Parameters
-
| name | named component component with 0...NReal-1 compile-time and NReal... runtime arguments |
◆ GetRealNames()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| std::vector< std::string > amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::GetRealNames |
( |
| ) |
const |
|
inline |
Get the names for the real SoA components
◆ idcpuarray()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ intarray()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ NumIntComps()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ numNeighborParticles()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns the number of neighbor particles (excluding reals)
◆ numParticles()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns the number of real particles (excluding neighbors)
◆ NumRealComps()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ numRealParticles()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns the number of real particles (excluding neighbors)
◆ numTotalParticles()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns the total number of particles (real and neighbor)
◆ realarray()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ reserve()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ resize()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ setNumNeighbors()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| void amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::setNumNeighbors |
( |
int |
num_neighbors | ) |
|
|
inline |
◆ size()
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
Returns the total number of particles (real and neighbor)
◆ m_defined
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
whether the runtime components are sized correctly
◆ m_idata
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ m_idata_names
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| std::vector<std::string>* amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::m_idata_names = nullptr |
|
private |
◆ m_idcpu
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ m_num_neighbor_particles
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ m_rdata
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ m_rdata_names
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
| std::vector<std::string>* amrex::StructOfArrays< NReal, NInt, Allocator, use64BitIdCpu >::m_rdata_names = nullptr |
|
private |
◆ m_runtime_idata
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
◆ m_runtime_rdata
template<int NReal, int NInt, template< class > class Allocator = DefaultAllocator, bool use64BitIdCpu = false>
The documentation for this struct was generated from the following file: