ParticleArrays< NRealT, NIntT, P, RT, IT > Struct Template Reference

SPADES API: spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT > Struct Template Reference
SPADES API
spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT > Struct Template Reference

Particle operations. More...

#include <ParticleOps.H>

Public Member Functions

 ParticleArrays (P *aos, std::array< RT, NRealT > &rdata, std::array< IT, NIntT > &idata)
 Constructor.
 

Public Attributes

P * m_aos = nullptr
 AOS data.
 
amrex::GpuArray< amrex::Real *, NRealT > m_rdata
 Pointers to real data.
 
amrex::GpuArray< int *, NIntT > m_idata
 Pointers to int data.
 

Static Public Attributes

static constexpr size_t NREAL = NRealT
 
static constexpr size_t NINT = NIntT
 

Detailed Description

template<size_t NRealT, size_t NIntT, class P, class RT, class IT>
struct spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >

Particle operations.

Constructor & Destructor Documentation

◆ ParticleArrays()

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::ParticleArrays ( P * aos,
std::array< RT, NRealT > & rdata,
std::array< IT, NIntT > & idata )
inline

Constructor.

Parameters
aos[in] particle AOS data
rdata[in] particle real data
idata[in] particle int data
26 : m_aos(aos)
27 {
28 for (size_t i = 0; i < NRealT; i++) {
29 m_rdata[i] = rdata[i].data();
30 }
31 for (size_t i = 0; i < NIntT; i++) {
32 m_idata[i] = idata[i].data();
33 }
34 }
amrex::GpuArray< amrex::Real *, NRealT > m_rdata
Pointers to real data.
Definition ParticleOps.H:40
P * m_aos
AOS data.
Definition ParticleOps.H:37
amrex::GpuArray< int *, NIntT > m_idata
Pointers to int data.
Definition ParticleOps.H:43

Member Data Documentation

◆ m_aos

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
P* spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::m_aos = nullptr

AOS data.

◆ m_idata

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
amrex::GpuArray<int*, NIntT> spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::m_idata

Pointers to int data.

◆ m_rdata

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
amrex::GpuArray<amrex::Real*, NRealT> spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::m_rdata

Pointers to real data.

◆ NINT

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
size_t spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::NINT = NIntT
staticconstexpr

◆ NREAL

template<size_t NRealT, size_t NIntT, class P , class RT , class IT >
size_t spades::particles::ParticleArrays< NRealT, NIntT, P, RT, IT >::NREAL = NRealT
staticconstexpr

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