8#ifndef OPENFPM_NUMERICS_SRC_DRAW_POINTITERATOR_HPP_
9#define OPENFPM_NUMERICS_SRC_DRAW_POINTITERATOR_HPP_
57template<
unsigned int dim,
typename T,
typename Decomposition>
74 for (
size_t i = 0 ; i < dim ; i++)
79 for (
size_t i = 0 ; i < dim ; i++)
87 for (
size_t i = 0 ; i < dim ; i++)
92 for (
size_t i = 0 ; i < dim ; i++)
105 for (
size_t i = 0 ; i < dim ; i++)
117 :
grid_dist_id_iterator_dec<
Decomposition>(dec, sz,
getStart(sz,
domain,
sub_domain,
sp),
getStop(sz,
domain,
sub_domain,
sp)),
sub_domain(
sub_domain),
domain(
domain)
166 for (
size_t i = 0 ; i < dim ; i++)
This class represent an N-dimensional box.
__device__ __host__ T getLow(int i) const
get the i-coordinate of the low bound interval of the box
__device__ __host__ T getHigh(int i) const
get the high interval of the box
__device__ __host__ void setHigh(int i, T val)
set the high interval of the box
__device__ __host__ void setLow(int i, T val)
set the low interval of the box
This class define the domain decomposition interface.
this class draw particles on subset of grid-like position
Box< dim, T > getBoxMargins()
Return the real Margin of the box.
Box< dim, T > domain
domain
Box< dim, T > sub_domain
sub_domain
Point< dim, T > ap
Actual point.
PointIterator & operator++()
Next point.
PointIterator(Decomposition &dec, size_t(&sz)[dim], const Box< dim, T > &domain, Box< dim, T > &sub_domain)
Draw Particles.
This class implement the point shape in an N-dimensional space.
Given the decomposition it create an iterator.
grid_key_dx< Decomposition::dims > start
start key
grid_key_dx< Decomposition::dims > getStart()
Get the starting point of the sub-grid we are iterating.
grid_key_dx< Decomposition::dims > get()
Get the actual global key of the grid.
grid_key_dx< Decomposition::dims > getStop()
Get the starting point of the sub-grid we are iterating.
grid_key_dx< Decomposition::dims > stop
stop key
grid_dist_id_iterator_dec< Decomposition, ghost_or_domain > & operator++()
Get the next element.
bool isNext()
Check if there is the next element.
grid_key_dx is the key to access any element in the grid
__device__ __host__ void set_d(index_type i, index_type id)
Set the i index.
__device__ __host__ index_type get(index_type i) const
Get the i index.