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"
20template<
unsigned int dim>
35template<
unsigned int dim>
57 const typename CellListType::Mem_type_type::loc_index *
start;
60 const typename CellListType::Mem_type_type::loc_index *
stop;
const long int * getPointer() const
return the pointer to the array
This iterator iterate across the particles of a Cell-list following the Cell structure.
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.
void selectValid()
Adjust the counters to reach a valid particle element.
const openfpm::vector< size_t > & dom_cell
List of all the domain cells.
const CellListType::Mem_type_type::loc_index * start
starting position
CellListType::SymNNIterator getNNIteratorCSR(const vector_pos_type &v) const
Get the neighborhood iterator according to the CRS scheme.
bool isNext()
Return true if there is the next particle.
CellListType & cli
Celllist type.
const openfpm::vector< subsub_lin< dim > > & anom_dom_cell
List of all anomalous domain cells with neighborhood.
const CellListType::Mem_type_type::loc_index * stop
stop position
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 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.
ParticleItCRS_Cells & operator++()
Increment to the next particle.
const long int * NNc
Neighborhood.
long int NNc_size
Neighborhood size.
size_t get()
Get the actual particle id.
grid_key_dx is the key to access any element in the grid
Implementation of 1-D std::vector like structure.
Structure that contain a reference to a vector of particles.
Linearized version of subsub.
openfpm::vector< long int > NN_subsub
Neighborhood of each sub-sub-domains (indicate the relative position compared to subsub)
size_t subsub
sub-sub-domain
grid_key_dx< dim > subsub
sub-sub-domain
openfpm::vector< grid_key_dx< dim > > NN_subsub
Neighborhood of each sub-sub-domains.