8 #ifndef OPENFPM_DATA_SRC_NN_CELLLIST_PARTICLEITCRS_CELLS_HPP_ 9 #define OPENFPM_DATA_SRC_NN_CELLLIST_PARTICLEITCRS_CELLS_HPP_ 11 #include "CellNNIterator.hpp" 12 #include "CellList_util.hpp" 13 #include "NN/CellList/NNc_array.hpp" 20 template<
unsigned int dim>
35 template<
unsigned int dim>
57 const typename CellListType::Mem_type_type::loc_index *
start;
60 const typename CellListType::Mem_type_type::loc_index *
stop;
const NNc_array< dim, openfpm::math::pow(3, dim)/2+1 > & NNc_sym
The array contain the neighborhood of the cell-id in case of symmetric interaction.
grid_key_dx< dim > subsub
sub-sub-domain
bool isNext()
Return true if there is the next particle.
size_t get()
Get the actual particle id.
Structure that contain a reference to a vector of particles.
openfpm::vector< long int > NN_subsub
Neighborhood of each sub-sub-domains (indicate the relative position compared to subsub)
void selectValid()
Adjust the counters to reach a valid particle element.
CellListType & cli
Celllist type.
This iterator iterate across the particles of a Cell-list following the Cell structure.
const long int * getPointer() const
return the pointer to the array
CellListType::SymNNIterator getNNIteratorCSRM(const vector_pos_type &pos, const openfpm::vector< pos_v< vector_pos_type >> &v) const
Get the neighborhood iterator according to the CRS scheme Multi-phase case.
ParticleItCRS_Cells & operator++()
Increment to the next particle.
const openfpm::vector< subsub_lin< dim > > & anom_dom_cell
List of all anomalous domain cells with neighborhood.
size_t subsub
sub-sub-domain
CellListType::SymNNIterator getNNIteratorCSR(const vector_pos_type &v) const
Get the neighborhood iterator according to the CRS scheme.
const long int * NNc
Neighborhood.
const CellListType::Mem_type_type::loc_index * start
starting position
long int NNc_size
Neighborhood size.
ParticleItCRS_Cells(CellListType &cli, const openfpm::vector< size_t > &dom_cell, const openfpm::vector< subsub_lin< dim >> &anom_dom_cell, const NNc_array< dim, openfpm::math::pow(3, dim)/2+1 > &NNc_sym)
Initialize the iterator.
const CellListType::Mem_type_type::loc_index * stop
stop position
Implementation of 1-D std::vector like structure.
const openfpm::vector< size_t > & dom_cell
List of all the domain cells.
Linearized version of subsub.
openfpm::vector< grid_key_dx< dim > > NN_subsub
Neighborhood of each sub-sub-domains.