XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
AoSoAIndices< Device > Struct Template Reference

#include <particles.hpp>

Public Member Functions

KOKKOS_INLINE_FUNCTION AoSoAIndices (int idx)
 
template<>
KOKKOS_INLINE_FUNCTION AoSoAIndices (int idx)
 

Public Attributes

int s
 The index in the outer array of the AoSoA. More...
 
int a
 The index in the inner array of the AoSoA. More...
 

Constructor & Destructor Documentation

template<class Device >
KOKKOS_INLINE_FUNCTION AoSoAIndices< Device >::AoSoAIndices ( int  idx)

From the particle index, get the position in the AoSoA

Parameters
[in]idxThe vector index
template<>
KOKKOS_INLINE_FUNCTION AoSoAIndices< DeviceType >::AoSoAIndices ( int  idx)

From the particle index, get the position in the AoSoA. If Host and Device are different spaces, use this specialization if running on GPU

Parameters
[in]idxThe particle index

Member Data Documentation

template<class Device>
int AoSoAIndices< Device >::a

The index in the inner array of the AoSoA.

template<class Device>
int AoSoAIndices< Device >::s

The index in the outer array of the AoSoA.


The documentation for this struct was generated from the following file: