template<unsigned int dim, typename St, typename
prop, typename
Decomposition = CartDecomposition<dim,St>, typename Memory = HeapMemory, template< typename > class layout_base = memory_traits_lin>
class vector_dist_subset< dim, St, prop, Decomposition, Memory, layout_base >
Definition at line 83 of file vector_dist_subset.hpp.
|
| vector_dist_subset (vector_dist_ws< dim, St, prop, Decomposition, Memory, layout_base > &vd, int sub_id) |
|
void | ghost_get_subset () |
|
openfpm::vector< aggregate< int > > & | getIds () |
| Return the ids.
|
|
void | update () |
| Update the subset indexes.
|
|
Decomposition & | getDecomposition () |
| Get the decomposition.
|
|
const Decomposition & | getDecomposition () const |
| Get the decomposition.
|
|
size_t | size_local () const |
| return the local size of the vector
|
|
size_t | size_local_orig () const |
| return the local size of the original vector
|
|
auto | getPos (vect_dist_key_dx vec_key) -> decltype(vd.getPos(vec_key)) |
| Get the position of an element.
|
|
auto | getPos (vect_dist_key_dx vec_key) const -> decltype(vd.getPos(vec_key)) |
| Get the position of an element.
|
|
template<unsigned int ... prp> |
void | hostToDeviceProp () |
| Move the memory from the device to host memory.
|
|
void | hostToDevicePos () |
| Move the memory from the device to host memory.
|
|
auto | getPosOrig (vect_dist_key_dx vec_key) -> decltype(vd.getPos(vec_key)) |
| Get the position of an element.
|
|
auto | getPosOrig (vect_dist_key_dx vec_key) const -> decltype(vd.getPos(vec_key)) |
| Get the position of an element.
|
|
template<unsigned int id> |
auto | getProp (vect_dist_key_dx vec_key) -> decltype(vd.template getProp< id >(vec_key)) |
| Get the property of an element.
|
|
template<unsigned int id> |
auto | getProp (vect_dist_key_dx vec_key) const -> decltype(vd.template getProp< id >(vec_key)) |
| Get the property of an element.
|
|
vect_dist_key_dx | getOriginKey (vect_dist_key_dx vec_key) |
|
vector_dist_iterator_subset | getDomainIterator () const |
| Get an iterator that traverse the particles in the domain.
|
|
template<typename CellL = CellList_gen<dim, St, Process_keys_lin, Mem_fast<>, shift<dim, St>, typename std::remove_reference<decltype(vd.getPosVector())>::type >> |
CellL | getCellList (St r_cut, bool no_se3=false) |
| Construct a cell list starting from the stored particles.
|
|
bool | isSubset () const |
| Indicate that this class is not a subset.
|
|
template<typename CellL = CellList_gen<dim, St, Process_keys_lin, Mem_fast<>, shift<dim, St> >> |
CellL | getCellList (St r_cut, const Ghost< dim, St > &enlarge, bool no_se3=false) |
| Construct a cell list starting from the stored particles.
|
|
vector_dist_subset< dim, St, prop, Decomposition, Memory, layout_base > & | operator= (const vector_dist_subset< dim, St, prop, Decomposition, Memory, layout_base > &v) |
| Operator= for distributed vector.
|
|
template<unsigned int dim, typename St , typename
prop , typename
Decomposition = CartDecomposition<dim,St>, typename Memory = HeapMemory, template< typename > class layout_base = memory_traits_lin>
template<typename CellL = CellList_gen<dim, St, Process_keys_lin, Mem_fast<>, shift<dim, St>, typename std::remove_reference<decltype(vd.getPosVector())>::type >>
Construct a cell list starting from the stored particles.
- Template Parameters
-
- Parameters
-
r_cut | interation radius, or size of each cell |
no_se3 | avoid SE_CLASS3 checking |
- Returns
- the Cell list
Definition at line 398 of file vector_dist_subset.hpp.
template<unsigned int dim, typename St , typename
prop , typename
Decomposition = CartDecomposition<dim,St>, typename Memory = HeapMemory, template< typename > class layout_base = memory_traits_lin>
template<typename CellL = CellList_gen<dim, St, Process_keys_lin, Mem_fast<>, shift<dim, St> >>
Construct a cell list starting from the stored particles.
It differ from the get getCellList for an additional parameter, in case the domain + ghost is not big enough to contain additional padding particles, a Cell list with bigger space can be created (padding particles in general are particles added by the user out of the domains)
- Template Parameters
-
- Parameters
-
r_cut | interation radius, or size of each cell |
enlarge | In case of padding particles the cell list must be enlarged, like a ghost this parameter say how much must be enlarged |
no_se3 | avoid se_class3 cheking default false |
- Returns
- the CellList
Definition at line 439 of file vector_dist_subset.hpp.