Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion core/src/Cabana_ParticleList.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,21 @@ class ParticleList
using aosoa_type = Cabana::AoSoA<member_types, memory_space, VectorLength>;
//! Particle tuple type.
using tuple_type = typename aosoa_type::tuple_type;

/*!
\brief Single field slice type.
\brief Single field slice type (by index).
\tparam M AoSoA field index.
*/
template <std::size_t M>
using slice_type = typename aosoa_type::template member_slice_type<M>;

/*!
\brief Single field slice type (by tag name).
\tparam FieldTag Field tag.
*/
template <typename FieldTag>
using field_type = slice_type<TypeIndexer<FieldTag, FieldTags...>::index>;

//! Single particle type.
using particle_type = Particle<FieldTags...>;
//! Single SoA type.
Expand Down
Loading