8 #ifndef OPENFPM_DATA_SRC_NN_CELLLIST_CELLLIST_UTIL_HPP_
9 #define OPENFPM_DATA_SRC_NN_CELLLIST_CELLLIST_UTIL_HPP_
11 #define CL_SYMMETRIC 1
12 #define CL_NON_SYMMETRIC 2
14 #include "Vector/map_vector.hpp"
31 for (
size_t i = 0; i < pos.size() ; i++)
33 cli.
add(pos.get(i), i);
52 for (
size_t i = 0; i < g_m ; i++)
57 for (
size_t i = g_m; i < pos.size() ; i++)
77 if (opt == CL_NON_SYMMETRIC)
78 populate_cell_list_no_sym(pos,cli,g_m);
80 populate_cell_list_sym(pos,cli,g_m);
87 template<
unsigned int dim,
typename T>
void add(const T(&pos)[dim], typename base::value_type ele)
Add an element in the cell list.
This class implement the point shape in an N-dimensional space.
Structure that contain a reference to a vector of particles.
void addPad(const T(&pos)[dim], typename base::value_type ele)
Add an element in the cell list forcing to be in the padding cells.
void clear()
Clear the cell list.
void addDom(const T(&pos)[dim], typename base::value_type ele)
Add an element in the cell list forcing to be in the domain cells.
Implementation of 1-D std::vector like structure.
Class for FAST cell list implementation.