XGCa
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)
 
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

◆ AoSoAIndices() [1/2]

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

◆ AoSoAIndices() [2/2]

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

◆ a

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

The index in the inner array of the AoSoA.

◆ s

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: