-
Notifications
You must be signed in to change notification settings - Fork 61
Core Tuple
Sam Reeve edited this page May 18, 2023
·
2 revisions
A Tuple holds a subset of particle fields together in a logical collection that has the ability to be contiguous in memory.
template<typename... Types>
struct Tuple<MemberTypes<Types...> >-
Types: Define the datatypes to be stored in theTupleviaCabana::MemberDataTypes. The types defined inCabana::MemberDataTypescan be any POD type who's size is known at compile time or any type that is trivial.
using T0 = float[3];
using T1 = double;
using DataTypes = Cabana::MemberTypes<T0,T1>;
using Tuple_t = Cabana::Tuple<DataTypes>;This is part of the Programming Guide series
Cabana - A Co-Designed Library for Exascale Particle Simulations