|
|
| ParticleList (const std::string &label) |
| | Default constructor.
|
| |
|
| ParticleList (const aosoa_type &aosoa) |
| | Constructor from existing AoSoA.
|
| |
|
KOKKOS_INLINE_FUNCTION std::size_t | size () const |
| | Get the number of particles in the list.
|
| |
|
void | resize (const std::size_t n) |
| | Update the number of particles in the list.
|
| |
|
aosoa_type & | aosoa () |
| | Get the AoSoA.
|
| |
|
KOKKOS_INLINE_FUNCTION const aosoa_type & | aosoa () const |
| | Get the AoSoA (const).
|
| |
|
template<class IndexType> |
| KOKKOS_INLINE_FUNCTION auto | getParticle (IndexType p) const |
| | Get a single particle.
|
| |
|
template<class ParticleType, class IndexType> |
| KOKKOS_INLINE_FUNCTION void | setParticle (ParticleType particle, IndexType p) const |
| | Set a single particle.
|
| |
|
template<class IndexType> |
| KOKKOS_INLINE_FUNCTION auto | getParticleView (IndexType p) const |
| | Set a single particle with the struct+array indexing.
|
| |
|
const std::string & | label () const |
| | Get the AoSoA label.
|
| |
|
template<class FieldTag> |
| slice_type< TypeIndexer< FieldTag, FieldTags... >::index > | slice (FieldTag) const |
| | Get a slice of a given field.
|
| |
template<class MemorySpace, int VectorLength, class... FieldTags>
class Cabana::ParticleList< MemorySpace, VectorLength, FieldTags >
List of particle fields stored in AoSoA.