Skip to content
Snippets Groups Projects

Particle Data Structure

Merged Slattery, Stuart requested to merge (removed):particle_api into master
1 file
+ 9
0
Compare changes
  • Side-by-side
  • Inline
@@ -223,6 +223,15 @@ class AoSoA
// -------------------------------
// Raw array data access
// Get the size of the data array at a given struct member index.
template<std::size_t I>
CABANA_INLINE_FUNCTION
std::size_t arraySize( const std::size_t s )
{
return
( s < _num_soa - 1 ) ? soa_array_size : ( _size % soa_array_size );
}
// Access the data array at a given struct member index.
template<std::size_t I>
CABANA_INLINE_FUNCTION
Loading