OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
SkeletonStencil< dim, p_src, p_dst > Struct Template Reference

Detailed Description

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
struct SkeletonStencil< dim, p_src, p_dst >

Definition at line 822 of file SparseGridGpu_util_test.cuh.

Public Types

typedef NNStar< dim > stencil_type
 

Static Public Member Functions

template<typename SparseGridT , typename DataBlockWrapperT >
static __device__ void stencil (SparseGridT &sparseGrid, const unsigned int dataBlockId, const openfpm::sparse_index< unsigned int > dataBlockIdPos, const unsigned int offset, const grid_key_dx< dim, int > &pointCoord, const DataBlockWrapperT &dataBlockLoad, DataBlockWrapperT &dataBlockStore, bool isActive, float dt)
 Stencil function.
 
template<typename SparseGridT , typename DataBlockWrapperT >
static __host__ void stencilHost (SparseGridT &sparseGrid, const unsigned int dataBlockId, const openfpm::sparse_index< unsigned int > dataBlockIdPos, const unsigned int offset, const grid_key_dx< dim, int > &pointCoord, const DataBlockWrapperT &dataBlockLoad, DataBlockWrapperT &dataBlockStore, bool isActive, float dt)
 Stencil Host function.
 
template<typename SparseGridT , typename CtxT >
static void __host__ flush (SparseGridT &sparseGrid, CtxT &ctx)
 

Static Public Attributes

static constexpr unsigned int flops = 1
 
static constexpr unsigned int supportRadius = 1
 

Member Typedef Documentation

◆ stencil_type

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
typedef NNStar<dim> SkeletonStencil< dim, p_src, p_dst >::stencil_type

Definition at line 824 of file SparseGridGpu_util_test.cuh.

Member Function Documentation

◆ flush()

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
template<typename SparseGridT , typename CtxT >
static void __host__ SkeletonStencil< dim, p_src, p_dst >::flush ( SparseGridT &  sparseGrid,
CtxT &  ctx 
)
inlinestatic

Definition at line 953 of file SparseGridGpu_util_test.cuh.

◆ stencil()

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
template<typename SparseGridT , typename DataBlockWrapperT >
static __device__ void SkeletonStencil< dim, p_src, p_dst >::stencil ( SparseGridT &  sparseGrid,
const unsigned int  dataBlockId,
const openfpm::sparse_index< unsigned int >  dataBlockIdPos,
const unsigned int  offset,
const grid_key_dx< dim, int > &  pointCoord,
const DataBlockWrapperT &  dataBlockLoad,
DataBlockWrapperT &  dataBlockStore,
bool  isActive,
float  dt 
)
inlinestatic

Stencil function.

Parameters
sparseGridThis is the sparse grid data-structure
dataBlockIdThe id of the block
offsetindex in local coordinate of the point where we are working
dataBlockLoaddataBlock from where we read
dataBlockStoredataBlock from where we write
isActivethe point is active if exist and is not padding
dtdelta t

Definition at line 845 of file SparseGridGpu_util_test.cuh.

◆ stencilHost()

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
template<typename SparseGridT , typename DataBlockWrapperT >
static __host__ void SkeletonStencil< dim, p_src, p_dst >::stencilHost ( SparseGridT &  sparseGrid,
const unsigned int  dataBlockId,
const openfpm::sparse_index< unsigned int >  dataBlockIdPos,
const unsigned int  offset,
const grid_key_dx< dim, int > &  pointCoord,
const DataBlockWrapperT &  dataBlockLoad,
DataBlockWrapperT &  dataBlockStore,
bool  isActive,
float  dt 
)
inlinestatic

Stencil Host function.

Parameters
sparseGridThis is the sparse grid data-structure
dataBlockIdThe id of the block
offsetindex in local coordinate of the point where we are working
dataBlockLoaddataBlock from where we read
dataBlockStoredataBlock from where we write
isActivethe point is active if exist and is not padding
dtdelta t

Definition at line 899 of file SparseGridGpu_util_test.cuh.

Field Documentation

◆ flops

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
constexpr unsigned int SkeletonStencil< dim, p_src, p_dst >::flops = 1
staticconstexpr

Definition at line 828 of file SparseGridGpu_util_test.cuh.

◆ supportRadius

template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
constexpr unsigned int SkeletonStencil< dim, p_src, p_dst >::supportRadius = 1
staticconstexpr

Definition at line 830 of file SparseGridGpu_util_test.cuh.


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