OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
NNType< dim, T, CellListImpl, PartIt, VL_CRS_SYMMETRIC, local_index > Struct Template Reference

Get the neighborhood iterator based on type. More...

Detailed Description

template<unsigned int dim, typename T, typename CellListImpl, typename PartIt, typename local_index>
struct NNType< dim, T, CellListImpl, PartIt, VL_CRS_SYMMETRIC, local_index >

Get the neighborhood iterator based on type.

specialization for the case with NN CRS symmetric

Template Parameters
dimdimensionality
Ttype of space
CellListImplCell-list implementation
PartItParticle iterator

Definition at line 173 of file VerletListFast.hpp.

#include <VerletListFast.hpp>

Static Public Member Functions

template<typename vector_pos_type >
static auto get (const PartIt &it, const vector_pos_type &v, Point< dim, T > &xp, size_t p, CellListImpl &cl, T r_cut) -> decltype(it.getNNIteratorCSR(v))
 Get the neighborhood.
 
static void add (local_index p, openfpm::vector< local_index > &pc)
 Add particle in the list of the domain particles.
 

Member Function Documentation

◆ add()

template<unsigned int dim, typename T , typename CellListImpl , typename PartIt , typename local_index >
static void NNType< dim, T, CellListImpl, PartIt, VL_CRS_SYMMETRIC, local_index >::add ( local_index  p,
openfpm::vector< local_index > &  pc 
)
inlinestatic

Add particle in the list of the domain particles.

Parameters
pparticle id
pcdomain particle sequence

Definition at line 205 of file VerletListFast.hpp.

◆ get()

template<unsigned int dim, typename T , typename CellListImpl , typename PartIt , typename local_index >
template<typename vector_pos_type >
static auto NNType< dim, T, CellListImpl, PartIt, VL_CRS_SYMMETRIC, local_index >::get ( const PartIt &  it,
const vector_pos_type &  v,
Point< dim, T > &  xp,
size_t  p,
CellListImpl &  cl,
r_cut 
) -> decltype(it.getNNIteratorCSR(v))
inlinestatic

Get the neighborhood.

Parameters
itparticle iterator
vvector of the particles positions
xpPosition of the particle p
pid of the particle p
clCell-list type implementation
r_cutCutoff radius
Returns
the NN iterator

Definition at line 188 of file VerletListFast.hpp.


The documentation for this struct was generated from the following file: