8 #ifndef CELLLIST_CPU_KER_CUH_ 9 #define CELLLIST_CPU_KER_CUH_ 11 #include "Cuda_cell_list_util_func.hpp" 13 template<
unsigned int dim,
typename T,
typename Mem_type,
typename transform>
16 typedef typename Mem_type::local_index_type cnt_type;
18 typedef typename Mem_type::local_index_type ids_type;
42 inline __device__
unsigned int getCell(
const Point<dim,T> & xp)
const 56 return Mem_type::getNelements(cell);
69 inline __device__
unsigned int get(
unsigned int cell,
unsigned int ele)
71 return Mem_type::get(cell,
ele);
__device__ unsigned int get(unsigned int cell, unsigned int ele)
Get an element in the cell.
This class implement the point shape in an N-dimensional space.
__device__ int getNelements(unsigned int cell) const
Return the number of elements in the cell.
openfpm::array< ids_type, dim, cnt_type > off
cell padding
openfpm::array< T, dim, cnt_type > spacing_c
Spacing.
transform t
transformation
openfpm::array< ids_type, dim, cnt_type > div_c
number of sub-divisions in each direction