/*! \brief populate the Cell-list with particles symmetric case * * \tparam dim dimensionality of the space * \tparam T type of the space * \tparam CellList type of cell-list * * \param pos vector of positions * \param cli Cell-list * \param g_m marker (particle below this marker must be inside the domain, particles outside this marker must be outside the domain) * */ template<unsigned int dim, typename T, typename CellList> void populate_cell_list_sym(openfpm::vector<Point<dim,T>> & pos, CellList & cli, size_t g_m) { cli.clear(); for (size_t i = 0; i < g_m ; i++) { cli.addDom(pos.get(i), i); } for (size_t i = g_m; i < pos.size() ; i++) { cli.addPad(pos.get(i), i); } }