|
|
| ParticleList (const std::string &label) |
| | Default constructor.
|
| |
| template<class LocalGridType> |
| bool | redistribute (const LocalGridType &local_grid, const bool force_redistribute=false) |
| | Redistribute particles to new owning grids.
|
| |
| template<class PositionFieldTag, class LocalGridType> |
| bool | redistribute (const LocalGridType &local_grid, PositionFieldTag, const bool force_redistribute=false) |
| | Redistribute particles to new owning grids with explicit field.
|
| |
Public Member Functions inherited from Cabana::ParticleList< MemorySpace, VectorLength, FieldTags... > |
|
| 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).
|
| |
|
KOKKOS_INLINE_FUNCTION auto | getParticle (IndexType p) const |
| | Get a single particle.
|
| |
|
KOKKOS_INLINE_FUNCTION void | setParticle (ParticleType particle, IndexType p) const |
| | Set a single particle.
|
| |
|
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.
|
| |
|
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::Grid::ParticleList< MemorySpace, VectorLength, FieldTags >
List of particle fields stored in AoSoA with associated mesh.