Copy Struct Reference
SPADES API
|
spades::particles::Copy Struct Reference
Functor for copying a particle's data to another. More...
#include <ParticleOps.H>
Public Member Functions | |
template<class PArrs > | |
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | operator() (const amrex::Long p1, const amrex::Long p2, PArrs &parrs) const |
Copy particle data. | |
Detailed Description
Functor for copying a particle's data to another.
Member Function Documentation
◆ operator()()
template<class PArrs >
|
inline |
Copy particle data.
- Parameters
-
p1 [in] first particle index p2 [in] second particle index parrs [in, out] particle arrays
103 {
104 for (int i = 0; i < PArrs::NReal; i++) {
105 parrs.m_rdata[i][p2] = parrs.m_rdata[i][p1];
106 }
107 for (int i = 0; i < PArrs::NInt; i++) {
108 parrs.m_idata[i][p2] = parrs.m_idata[i][p1];
109 }
110 }
The documentation for this struct was generated from the following file:
- /home/runner/work/spades/spades/Source/ParticleOps.H
Generated by