OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
se_class3_vector< Np, dim, T, Decomposition, vector > Class Template Reference

This class check for inconsistency access. More...

Detailed Description

template<unsigned int Np, unsigned int dim, typename T, typename Decomposition, typename vector>
class se_class3_vector< Np, dim, T, Decomposition, vector >

This class check for inconsistency access.

Template Parameters
Npnumber of properties

Definition at line 427 of file se_class3_vector.hpp.

#include <se_class3_vector.hpp>

Public Member Functions

 se_class3_vector (Decomposition &dec, vector &vd)
 
template<unsigned int prp>
size_t isGhostSync ()
 return the status of the ghosts
 
void Initialize ()
 Initialize the se_class2 structure.
 
template<unsigned int ... prp>
void ghost_get_pre (size_t opt)
 
template<unsigned int ... prp>
void ghost_get_post (size_t opt)
 
template<unsigned int ... prp>
void ghost_put ()
 
void getIterator () const
 
void map_pre ()
 
void map_post ()
 Operation to do after map.
 
template<unsigned int prp>
void read (const vector &vd, size_t p) const
 
template<unsigned int prp>
void write (vector &vd, size_t p)
 
se_class3_vector< Np, dim, T, Decomposition, vector > & operator= (const se_class3_vector< Np, dim, T, Decomposition, vector > &se3)
 Copy operator.
 
template<unsigned int prp>
void setHaloOutSync ()
 
template<unsigned int prp>
void setGhostOutSync ()
 
void getNN ()
 

Private Member Functions

bool isLocalHalo (const Point< dim, T > &p)
 It check if the particle is in the internal ghost area.
 
size_t getParticleType (const Point< dim, T > &p, const size_t &id, vector &vd)
 Given the position it return the particle type.
 
template<unsigned int ... prp>
void create_NNP (const size_t(&gg)[sizeof...(prp)+1])
 Fill non_NP with the properties that are not synchronized.
 
std::string getPrpName (size_t i) const
 Get property name.
 

Private Attributes

int sync [2][Np]
 status of the properties
 
Decompositiondec
 Domain decomposition object.
 
vector & vd
 Reference to the distributed object.
 
openfpm::vector< size_t > non_NP
 temporal buffer
 
size_t l_wrt
 last write
 

Static Private Attributes

static const size_t Np_real = Np+SE3_STATUS
 number of real properties + POSITION
 

Constructor & Destructor Documentation

◆ se_class3_vector()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
se_class3_vector< Np, dim, T, Decomposition, vector >::se_class3_vector ( Decomposition dec,
vector &  vd 
)
inline

Constructor all properties are uninitialized

Parameters
decdecomposition
vdvector we are cheking with SE_CLASS3 checks

Definition at line 564 of file se_class3_vector.hpp.

Member Function Documentation

◆ create_NNP()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int ... prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::create_NNP ( const size_t(&)  gg[sizeof...(prp)+1])
inlineprivate

Fill non_NP with the properties that are not synchronized.

Parameters
ggvector of properties synchronized

Definition at line 519 of file se_class3_vector.hpp.

◆ getIterator()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
void se_class3_vector< Np, dim, T, Decomposition, vector >::getIterator ( ) const
inline

Definition at line 755 of file se_class3_vector.hpp.

◆ getNN()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
void se_class3_vector< Np, dim, T, Decomposition, vector >::getNN ( )
inline

Definition at line 894 of file se_class3_vector.hpp.

◆ getParticleType()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
size_t se_class3_vector< Np, dim, T, Decomposition, vector >::getParticleType ( const Point< dim, T > &  p,
const size_t &  id,
vector &  vd 
)
inlineprivate

Given the position it return the particle type.

Parameters
pposition of the particle
idof the particle (element id in the vector position)
vdreference to the vector
Returns
the particle type

Definition at line 483 of file se_class3_vector.hpp.

◆ getPrpName()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
std::string se_class3_vector< Np, dim, T, Decomposition, vector >::getPrpName ( size_t  i) const
inlineprivate

Get property name.

Parameters
iproperty
Returns
the property name

Definition at line 548 of file se_class3_vector.hpp.

◆ ghost_get_post()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int ... prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::ghost_get_post ( size_t  opt)
inline

Definition at line 646 of file se_class3_vector.hpp.

◆ ghost_get_pre()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int ... prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::ghost_get_pre ( size_t  opt)
inline

Definition at line 606 of file se_class3_vector.hpp.

◆ ghost_put()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int ... prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::ghost_put ( )
inline

Definition at line 707 of file se_class3_vector.hpp.

◆ Initialize()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
void se_class3_vector< Np, dim, T, Decomposition, vector >::Initialize ( )
inline

Initialize the se_class2 structure.

Definition at line 582 of file se_class3_vector.hpp.

◆ isGhostSync()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int prp>
size_t se_class3_vector< Np, dim, T, Decomposition, vector >::isGhostSync ( )
inline

return the status of the ghosts

Returns
the status of the ghosts

Definition at line 574 of file se_class3_vector.hpp.

◆ isLocalHalo()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
bool se_class3_vector< Np, dim, T, Decomposition, vector >::isLocalHalo ( const Point< dim, T > &  p)
inlineprivate

It check if the particle is in the internal ghost area.

Parameters
pparticle to check
Returns
true if the particle is in that area

Definition at line 454 of file se_class3_vector.hpp.

◆ map_post()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
void se_class3_vector< Np, dim, T, Decomposition, vector >::map_post ( )
inline

Operation to do after map.

Definition at line 797 of file se_class3_vector.hpp.

◆ map_pre()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
void se_class3_vector< Np, dim, T, Decomposition, vector >::map_pre ( )
inline

Definition at line 773 of file se_class3_vector.hpp.

◆ operator=()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
se_class3_vector< Np, dim, T, Decomposition, vector > & se_class3_vector< Np, dim, T, Decomposition, vector >::operator= ( const se_class3_vector< Np, dim, T, Decomposition, vector > &  se3)
inline

Copy operator.

Definition at line 873 of file se_class3_vector.hpp.

◆ read()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::read ( const vector &  vd,
size_t  p 
) const
inline

Definition at line 819 of file se_class3_vector.hpp.

◆ setGhostOutSync()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::setGhostOutSync ( )
inline

Definition at line 889 of file se_class3_vector.hpp.

◆ setHaloOutSync()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::setHaloOutSync ( )
inline

Definition at line 884 of file se_class3_vector.hpp.

◆ write()

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
template<unsigned int prp>
void se_class3_vector< Np, dim, T, Decomposition, vector >::write ( vector &  vd,
size_t  p 
)
inline

Definition at line 858 of file se_class3_vector.hpp.

Field Documentation

◆ dec

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
Decomposition& se_class3_vector< Np, dim, T, Decomposition, vector >::dec
private

Domain decomposition object.

Definition at line 436 of file se_class3_vector.hpp.

◆ l_wrt

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
size_t se_class3_vector< Np, dim, T, Decomposition, vector >::l_wrt
private

last write

Definition at line 445 of file se_class3_vector.hpp.

◆ non_NP

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
openfpm::vector<size_t> se_class3_vector< Np, dim, T, Decomposition, vector >::non_NP
private

temporal buffer

Definition at line 442 of file se_class3_vector.hpp.

◆ Np_real

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
const size_t se_class3_vector< Np, dim, T, Decomposition, vector >::Np_real = Np+SE3_STATUS
staticprivate

number of real properties + POSITION

Definition at line 433 of file se_class3_vector.hpp.

◆ sync

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
int se_class3_vector< Np, dim, T, Decomposition, vector >::sync[2][Np]
private

status of the properties

Definition at line 430 of file se_class3_vector.hpp.

◆ vd

template<unsigned int Np, unsigned int dim, typename T , typename Decomposition , typename vector >
vector& se_class3_vector< Np, dim, T, Decomposition, vector >::vd
private

Reference to the distributed object.

Definition at line 439 of file se_class3_vector.hpp.


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