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

Detailed Description

template<unsigned int dim>
struct NNFull< dim >

Definition at line 262 of file SparseGridGpu.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])
 
template<unsigned int blockEdgeSize, typename indexT2 >
static __device__ bool getNNindex_offset (grid_key_dx< dim, indexT2 > &coord, unsigned int &NN_index, unsigned int &offset_nn)
 given a coordinate writtel in local coordinate for a given it return the neighborhood chunk position and the offset in the neighborhood chunk
 

Static Public Attributes

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

Member Function Documentation

◆ getNNindex_offset()

template<unsigned int dim>
template<unsigned int blockEdgeSize, typename indexT2 >
static __device__ bool NNFull< dim >::getNNindex_offset ( grid_key_dx< dim, indexT2 > &  coord,
unsigned int &  NN_index,
unsigned int &  offset_nn 
)
inlinestatic

given a coordinate writtel in local coordinate for a given it return the neighborhood chunk position and the offset in the neighborhood chunk

Parameters
coordlocal coordinated
NN_indexindex of the neighborhood chunk
offset_nnoffset in local coordinates
Returns
true if it is inside false otherwise

Definition at line 336 of file SparseGridGpu.hpp.

◆ getNNpos()

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

Definition at line 267 of file SparseGridGpu.hpp.

◆ getNNskin()

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

Definition at line 290 of file SparseGridGpu.hpp.

◆ isPadding()

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

Definition at line 320 of file SparseGridGpu.hpp.

Field Documentation

◆ nNN

template<unsigned int dim>
const int NNFull< dim >::nNN = IntPow<3, dim>::value
static

Definition at line 264 of file SparseGridGpu.hpp.


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