template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
struct HeatStencil< dim, p_src, p_dst >
Definition at line 202 of file SparseGridGpu_util_test.cuh.
|
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, unsigned char curMask, 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 constexpr unsigned int | flops = 3 + 2*dim |
|
static constexpr unsigned int | supportRadius = 1 |
|
◆ stencil_type
template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
◆ flush()
template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
template<typename SparseGridT , typename CtxT >
static void __host__ HeatStencil< dim, p_src, p_dst >::flush |
( |
SparseGridT & |
sparseGrid, |
|
|
CtxT & |
ctx |
|
) |
| |
|
inlinestatic |
◆ stencil()
template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
template<typename SparseGridT , typename DataBlockWrapperT >
static __device__ void HeatStencil< 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, |
|
|
unsigned char |
curMask, |
|
|
float |
dt |
|
) |
| |
|
inlinestatic |
Stencil function.
- Parameters
-
sparseGrid | This is the sparse grid data-structure |
dataBlockId | The id of the block |
offset | index in local coordinate of the point where we are working |
dataBlockLoad | dataBlock from where we read |
dataBlockStore | dataBlock from where we write |
isActive | the point is active if exist and is not padding |
dt | delta t |
Definition at line 225 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 HeatStencil< 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
-
sparseGrid | This is the sparse grid data-structure |
dataBlockId | The id of the block |
offset | index in local coordinate of the point where we are working |
dataBlockLoad | dataBlock from where we read |
dataBlockStore | dataBlock from where we write |
isActive | the point is active if exist and is not padding |
dt | delta t |
Definition at line 293 of file SparseGridGpu_util_test.cuh.
◆ flops
template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
constexpr unsigned int HeatStencil< dim, p_src, p_dst >::flops = 3 + 2*dim |
|
staticconstexpr |
◆ supportRadius
template<unsigned int dim, unsigned int p_src, unsigned int p_dst>
constexpr unsigned int HeatStencil< dim, p_src, p_dst >::supportRadius = 1 |
|
staticconstexpr |
The documentation for this struct was generated from the following file: