walberla::gpu::FieldAccessor3D< T > Class Template Reference

#include <FieldAccessor3D.h>

Public Member Functions

 FieldAccessor3D (char *ptr, uint_t xOffset, uint_t yOffset, uint_t zOffset, uint_t fOffset, const dim3 &idxDim, const dim3 &blockDim)
 
__device__ __forceinline__ void set (const uint3 &blockIdx, const uint3 &threadIdx)
 
__device__ __forceinline__ bool isValidPosition ()
 
__device__ __forceinline__ T & get ()
 
__device__ __forceinline__ T & get (int f)
 
__device__ __forceinline__ T & getNeighbor (int cx, int cy, int cz) const
 
__device__ __forceinline__ T & getNeighbor (int cx, int cy, int cz, int cf)
 

Protected Attributes

char * ptr_
 
uint_t xOffset_
 
uint_t yOffset_
 
uint_t zOffset_
 
uint_t fOffset_
 
dim3 idxDim_
 
dim3 blockDim_
 
bool isValidPosition_ { false }
 

Constructor & Destructor Documentation

◆ FieldAccessor3D()

template<typename T >
walberla::gpu::FieldAccessor3D< T >::FieldAccessor3D ( char *  ptr,
uint_t  xOffset,
uint_t  yOffset,
uint_t  zOffset,
uint_t  fOffset,
const dim3 &  idxDim,
const dim3 &  blockDim 
)
inline

Member Function Documentation

◆ get() [1/2]

template<typename T >
__device__ __forceinline__ T& walberla::gpu::FieldAccessor3D< T >::get ( )
inline

◆ get() [2/2]

template<typename T >
__device__ __forceinline__ T& walberla::gpu::FieldAccessor3D< T >::get ( int  f)
inline

◆ getNeighbor() [1/2]

template<typename T >
__device__ __forceinline__ T& walberla::gpu::FieldAccessor3D< T >::getNeighbor ( int  cx,
int  cy,
int  cz 
) const
inline

◆ getNeighbor() [2/2]

template<typename T >
__device__ __forceinline__ T& walberla::gpu::FieldAccessor3D< T >::getNeighbor ( int  cx,
int  cy,
int  cz,
int  cf 
)
inline

◆ isValidPosition()

template<typename T >
__device__ __forceinline__ bool walberla::gpu::FieldAccessor3D< T >::isValidPosition ( )
inline

◆ set()

template<typename T >
__device__ __forceinline__ void walberla::gpu::FieldAccessor3D< T >::set ( const uint3 &  blockIdx,
const uint3 &  threadIdx 
)
inline

Member Data Documentation

◆ blockDim_

template<typename T >
dim3 walberla::gpu::FieldAccessor3D< T >::blockDim_
protected

◆ fOffset_

template<typename T >
uint_t walberla::gpu::FieldAccessor3D< T >::fOffset_
protected

◆ idxDim_

template<typename T >
dim3 walberla::gpu::FieldAccessor3D< T >::idxDim_
protected

◆ isValidPosition_

template<typename T >
bool walberla::gpu::FieldAccessor3D< T >::isValidPosition_ { false }
protected

◆ ptr_

template<typename T >
char* walberla::gpu::FieldAccessor3D< T >::ptr_
protected

◆ xOffset_

template<typename T >
uint_t walberla::gpu::FieldAccessor3D< T >::xOffset_
protected

◆ yOffset_

template<typename T >
uint_t walberla::gpu::FieldAccessor3D< T >::yOffset_
protected

◆ zOffset_

template<typename T >
uint_t walberla::gpu::FieldAccessor3D< T >::zOffset_
protected

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