ParticleArrays< NReal, NInt, P, RT, IT > Struct Template Reference
SPADES API
|
spades::particles::ParticleArrays< NReal, NInt, P, RT, IT > Struct Template Reference
Particle operations. More...
#include <ParticleOps.H>
Public Member Functions | |
ParticleArrays (P *aos, std::array< RT, NReal > &rdata, std::array< IT, NInt > &idata) | |
Constructor. | |
Public Attributes | |
P * | m_aos = nullptr |
AOS data. | |
amrex::GpuArray< amrex::Real *, NReal > | m_rdata |
Pointers to real data. | |
amrex::GpuArray< int *, NInt > | m_idata |
Pointers to int data. | |
Detailed Description
template<size_t NReal, size_t NInt, class P, class RT, class IT>
struct spades::particles::ParticleArrays< NReal, NInt, P, RT, IT >
struct spades::particles::ParticleArrays< NReal, NInt, P, RT, IT >
Particle operations.
Constructor & Destructor Documentation
◆ ParticleArrays()
template<size_t NReal, size_t NInt, class P , class RT , class IT >
|
inline |
Constructor.
- Parameters
-
aos [in] particle AOS data rdata [in] particle real data idata [in] particle int data
23 : m_aos(aos)
24 {
25 for (size_t i = 0; i < NReal; i++) {
26 m_rdata[i] = rdata[i].data();
27 }
28 for (size_t i = 0; i < NInt; i++) {
29 m_idata[i] = idata[i].data();
30 }
31 }
amrex::GpuArray< amrex::Real *, NReal > m_rdata
Pointers to real data.
Definition ParticleOps.H:37
amrex::GpuArray< int *, NInt > m_idata
Pointers to int data.
Definition ParticleOps.H:40
Member Data Documentation
◆ m_aos
template<size_t NReal, size_t NInt, class P , class RT , class IT >
P* spades::particles::ParticleArrays< NReal, NInt, P, RT, IT >::m_aos = nullptr |
AOS data.
◆ m_idata
template<size_t NReal, size_t NInt, class P , class RT , class IT >
amrex::GpuArray<int*, NInt> spades::particles::ParticleArrays< NReal, NInt, P, RT, IT >::m_idata |
Pointers to int data.
◆ m_rdata
template<size_t NReal, size_t NInt, class P , class RT , class IT >
amrex::GpuArray<amrex::Real*, NReal> spades::particles::ParticleArrays< NReal, NInt, P, RT, IT >::m_rdata |
Pointers to real data.
The documentation for this struct was generated from the following file:
- /home/runner/work/spades/spades/Source/ParticleOps.H
Generated by