OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
CellList_cpu_ker< dim, T, Mem_type, transform > Class Template Reference

Detailed Description

template<unsigned int dim, typename T, typename Mem_type, typename transform>
class CellList_cpu_ker< dim, T, Mem_type, transform >

Definition at line 14 of file CellList_cpu_ker.cuh.

+ Inheritance diagram for CellList_cpu_ker< dim, T, Mem_type, transform >:

Public Member Functions

 CellList_cpu_ker (const Mem_type &mt, 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__ unsigned int getCell (const Point< dim, T > &xp) const
 
__device__ int getNelements (unsigned int cell) const
 Return the number of elements in the cell. More...
 
__device__ unsigned int get (unsigned int cell, unsigned int ele)
 Get an element in the cell. More...
 

Private Types

typedef Mem_type::local_index_type cnt_type
 
typedef Mem_type::local_index_type ids_type
 

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 padding
 
transform t
 transformation
 

Member Function Documentation

◆ get()

template<unsigned int dim, typename T, typename Mem_type, typename transform>
__device__ unsigned int CellList_cpu_ker< dim, T, Mem_type, transform >::get ( unsigned int  cell,
unsigned int  ele 
)
inline

Get an element in the cell.

Template Parameters
iproperty to get
Parameters
cellcell id
eleelement id
Returns
The element value

Definition at line 69 of file CellList_cpu_ker.cuh.

◆ getNelements()

template<unsigned int dim, typename T, typename Mem_type, typename transform>
__device__ int CellList_cpu_ker< dim, T, Mem_type, transform >::getNelements ( unsigned int  cell) const
inline

Return the number of elements in the cell.

Parameters
cell_idid of the cell
Returns
number of elements in the cell

Definition at line 54 of file CellList_cpu_ker.cuh.


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