Print Struct Reference
SPADES API
|
spades::particles::Print Struct Reference
Functor for printing particle data on host. More...
#include <ParticleOps.H>
Public Member Functions | |
template<class PArrs > | |
void | operator() (const amrex::Long n, PArrs &parrs) const |
Print particle data to screen. | |
Detailed Description
Functor for printing particle data on host.
Member Function Documentation
◆ operator()()
template<class PArrs >
|
inline |
Print particle data to screen.
- Parameters
-
n [in] particle index whose data is printed parrs [in] particle arrays
56 {
57 auto& p = parrs.m_aos[n];
58 amrex::Print() << "Particle data: \n"
59 << " id = " << p.id() << "\n"
60 << " cpu = " << p.cpu() << "\n"
61 << " type = "
63 for (size_t i = 0; i < PArrs::NINT; i++) {
64 amrex::Print() << " int comp(" << i
65 << ") = " << parrs.m_idata[i][n] << "\n";
66 }
67 for (size_t i = 0; i < PArrs::NREAL; i++) {
68 amrex::Print() << " real comp(" << i
69 << ") = " << parrs.m_rdata[i][n] << "\n";
70 }
71 }
The documentation for this struct was generated from the following file:
- /home/runner/work/spades/spades/Source/ParticleOps.H
Generated by