OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform > Class Template Reference

Detailed Description

template<unsigned int dim, typename T, typename cnt_type, typename ids_type, typename transform>
class CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >

Definition at line 18 of file CellDecomposer_gpu_ker.cuh.

+ Inheritance diagram for CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >:

Public Member Functions

__device__ __host__ CellDecomposer_gpu_ker (openfpm::array< T, dim, cnt_type > &spacing_c, openfpm::array< ids_type, dim, cnt_type > &div_c, openfpm::array< ids_type, dim, cnt_type > &off, const transform &t)
 
__device__ __host__ CellDecomposer_gpu_ker (openfpm::array< T, dim, cnt_type > &spacing_c, openfpm::array< ids_type, dim, cnt_type > &div_c, openfpm::array< ids_type, dim, cnt_type > &off, const transform &t, SpaceBox< dim, T > box_unit, grid_sm< dim, void > gr_cell, Point< dim, long int > cell_shift)
 
__device__ __host__ grid_sm< dim, void > getGrid ()
 
__device__ __host__ void getGridSize (size_t(&sz)[dim]) const
 
template<typename ids_type2 >
__device__ __host__ mem_id getGridLinId (const grid_key_dx< dim, ids_type2 > &gk) const
 
__device__ __host__ grid_key_dx< dim, ids_type > getCell (const Point< dim, T > &xp) const
 
__device__ __host__ cnt_type LinId (const grid_key_dx< dim, ids_type > &k) const
 
__device__ const openfpm::array< T, dim, cnt_type > & get_spacing_c () const
 
__device__ __host__ const openfpm::array< ids_type, dim, cnt_type > & get_div_c () const
 
__device__ __host__ const openfpm::array< ids_type, dim, cnt_type > & get_off () const
 
__device__ __host__ const transform & get_t () const
 
__device__ __host__ grid_key_dx< dim > getCellGrid (const T(&pos)[dim]) const
 
__device__ __host__ grid_key_dx< dim > getCellGrid (const Point< dim, T > &pos) const
 
__device__ __host__ size_t ConvertToID (const T(&x)[dim], size_t s) const
 
__device__ __host__ size_t ConvertToID (const Point< dim, T > &x, size_t s, size_t sc=0) const
 

Private Attributes

openfpm::array< T, dim, cnt_type > spacing_c
 Spacing.
 
openfpm::array< ids_type, dim, cnt_type > div_c
 number of sub-divisions in each direction
 
openfpm::array< ids_type, dim, cnt_type > off
 cell offset
 
transform t
 transformation
 
SpaceBox< dim, T > box_unit
 Unit box of the Cell list.
 
grid_sm< dim, void > gr_cell
 Grid structure of the Cell list.
 
Point< dim, long int > cell_shift
 cell_shift
 

Constructor & Destructor Documentation

◆ CellDecomposer_gpu_ker() [1/3]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::CellDecomposer_gpu_ker ( )
inline

Definition at line 42 of file CellDecomposer_gpu_ker.cuh.

◆ CellDecomposer_gpu_ker() [2/3]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::CellDecomposer_gpu_ker ( openfpm::array< T, dim, cnt_type > &  spacing_c,
openfpm::array< ids_type, dim, cnt_type > &  div_c,
openfpm::array< ids_type, dim, cnt_type > &  off,
const transform &  t 
)
inline

Definition at line 45 of file CellDecomposer_gpu_ker.cuh.

◆ CellDecomposer_gpu_ker() [3/3]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::CellDecomposer_gpu_ker ( openfpm::array< T, dim, cnt_type > &  spacing_c,
openfpm::array< ids_type, dim, cnt_type > &  div_c,
openfpm::array< ids_type, dim, cnt_type > &  off,
const transform &  t,
SpaceBox< dim, T >  box_unit,
grid_sm< dim, void >  gr_cell,
Point< dim, long int >  cell_shift 
)
inline

Definition at line 53 of file CellDecomposer_gpu_ker.cuh.

Member Function Documentation

◆ ConvertToID() [1/2]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ size_t CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::ConvertToID ( const Point< dim, T > &  x,
size_t  s,
size_t  sc = 0 
) const
inline

Definition at line 160 of file CellDecomposer_gpu_ker.cuh.

◆ ConvertToID() [2/2]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ size_t CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::ConvertToID ( const T(&)  x[dim],
size_t  s 
) const
inline

Definition at line 153 of file CellDecomposer_gpu_ker.cuh.

◆ get_div_c()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ const openfpm::array< ids_type, dim, cnt_type > & CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::get_div_c ( ) const
inline

Definition at line 112 of file CellDecomposer_gpu_ker.cuh.

◆ get_off()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ const openfpm::array< ids_type, dim, cnt_type > & CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::get_off ( ) const
inline

Definition at line 117 of file CellDecomposer_gpu_ker.cuh.

◆ get_spacing_c()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ const openfpm::array< T, dim, cnt_type > & CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::get_spacing_c ( ) const
inline

Definition at line 107 of file CellDecomposer_gpu_ker.cuh.

◆ get_t()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ const transform & CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::get_t ( ) const
inline

Definition at line 122 of file CellDecomposer_gpu_ker.cuh.

◆ getCell()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ grid_key_dx< dim, ids_type > CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getCell ( const Point< dim, T > &  xp) const
inline

Definition at line 97 of file CellDecomposer_gpu_ker.cuh.

◆ getCellGrid() [1/2]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ grid_key_dx< dim > CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getCellGrid ( const Point< dim, T > &  pos) const
inline

Definition at line 140 of file CellDecomposer_gpu_ker.cuh.

◆ getCellGrid() [2/2]

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ grid_key_dx< dim > CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getCellGrid ( const T(&)  pos[dim]) const
inline

Definition at line 127 of file CellDecomposer_gpu_ker.cuh.

◆ getGrid()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ grid_sm< dim, void > CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getGrid ( )
inline

Definition at line 65 of file CellDecomposer_gpu_ker.cuh.

◆ getGridLinId()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
template<typename ids_type2 >
__device__ __host__ mem_id CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getGridLinId ( const grid_key_dx< dim, ids_type2 > &  gk) const
inline

Definition at line 86 of file CellDecomposer_gpu_ker.cuh.

◆ getGridSize()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ void CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::getGridSize ( size_t(&)  sz[dim]) const
inline

Definition at line 77 of file CellDecomposer_gpu_ker.cuh.

◆ LinId()

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
__device__ __host__ cnt_type CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::LinId ( const grid_key_dx< dim, ids_type > &  k) const
inline

Definition at line 102 of file CellDecomposer_gpu_ker.cuh.

Field Documentation

◆ box_unit

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
SpaceBox<dim,T> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::box_unit
private

Unit box of the Cell list.

Definition at line 33 of file CellDecomposer_gpu_ker.cuh.

◆ cell_shift

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
Point<dim,long int> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::cell_shift
private

cell_shift

Definition at line 39 of file CellDecomposer_gpu_ker.cuh.

◆ div_c

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
openfpm::array<ids_type,dim,cnt_type> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::div_c
private

number of sub-divisions in each direction

Definition at line 24 of file CellDecomposer_gpu_ker.cuh.

◆ gr_cell

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
grid_sm<dim,void> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::gr_cell
private

Grid structure of the Cell list.

Definition at line 36 of file CellDecomposer_gpu_ker.cuh.

◆ off

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
openfpm::array<ids_type,dim,cnt_type> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::off
private

cell offset

Definition at line 27 of file CellDecomposer_gpu_ker.cuh.

◆ spacing_c

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
openfpm::array<T,dim,cnt_type> CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::spacing_c
private

Spacing.

Definition at line 21 of file CellDecomposer_gpu_ker.cuh.

◆ t

template<unsigned int dim, typename T , typename cnt_type , typename ids_type , typename transform >
transform CellDecomposer_gpu_ker< dim, T, cnt_type, ids_type, transform >::t
private

transformation

Definition at line 30 of file CellDecomposer_gpu_ker.cuh.


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