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

Detailed Description

template<unsigned int dim>
struct NNStar< dim >

Definition at line 87 of file SparseGridGpu_ker_util.hpp.

Static Public Member Functions

template<typename indexT , typename blockCoord_type , typename blockMap_type , typename SparseGrid_type >
static __device__ indexT getNNpos (blockCoord_type &blockCoord, blockMap_type &blockMap, SparseGrid_type &sparseGrid, const unsigned int offset)
 
template<typename indexT , unsigned int blockEdgeSize, typename coordType >
static __host__ indexT getNNskin (coordType &coord, int stencilSupportRadius)
 
template<typename sparseGrid_type , typename coord_type , typename Mask_type , unsigned int eb_size>
static __device__ bool isPadding (sparseGrid_type &sparseGrid, coord_type &coord, Mask_type(&enlargedBlock)[eb_size])
 
static __device__ bool getNNindex_offset ()
 given a coordinate give the neighborhood chunk position and the offset in the neighborhood chunk
 

Static Public Attributes

static const int nNN = IntPow<2, dim>::value
 

Member Function Documentation

◆ getNNindex_offset()

template<unsigned int dim>
static __device__ bool NNStar< dim >::getNNindex_offset ( )
inlinestatic

given a coordinate give the neighborhood chunk position and the offset in the neighborhood chunk

Definition at line 163 of file SparseGridGpu_ker_util.hpp.

◆ getNNpos()

template<unsigned int dim>
template<typename indexT , typename blockCoord_type , typename blockMap_type , typename SparseGrid_type >
static __device__ indexT NNStar< dim >::getNNpos ( blockCoord_type &  blockCoord,
blockMap_type &  blockMap,
SparseGrid_type &  sparseGrid,
const unsigned int  offset 
)
inlinestatic

Definition at line 92 of file SparseGridGpu_ker_util.hpp.

◆ getNNskin()

template<unsigned int dim>
template<typename indexT , unsigned int blockEdgeSize, typename coordType >
static __host__ indexT NNStar< dim >::getNNskin ( coordType &  coord,
int  stencilSupportRadius 
)
inlinestatic

Definition at line 115 of file SparseGridGpu_ker_util.hpp.

◆ isPadding()

template<unsigned int dim>
template<typename sparseGrid_type , typename coord_type , typename Mask_type , unsigned int eb_size>
static __device__ bool NNStar< dim >::isPadding ( sparseGrid_type &  sparseGrid,
coord_type &  coord,
Mask_type(&)  enlargedBlock[eb_size] 
)
inlinestatic

Definition at line 142 of file SparseGridGpu_ker_util.hpp.

Field Documentation

◆ nNN

template<unsigned int dim>
const int NNStar< dim >::nNN = IntPow<2, dim>::value
static

Definition at line 89 of file SparseGridGpu_ker_util.hpp.


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