this class is a functor for "for_each" algorithm More...
this class is a functor for "for_each" algorithm
This class is a functor for "for_each" algorithm. For each element of the boost::vector the operator() is called. Is mainly used to interpolate from the staggered grid to the normal target grid
| Tdst | destination property of the normal grid |
| Type | of the destination grid |
| Type | of the source grid |
Definition at line 89 of file staggered_dist_grid_copy.hpp.
#include <staggered_dist_grid_copy.hpp>
Public Member Functions | |
| openfpm::vector (&interp_pos)[nst_pos] | |
| For each properties [] for each components (openfpm::vector) interpolants points positions (std::vector<comb>) | |
| interp_ele (const grid_dist_key_dx< Grid_dst::dims > &key_dst, Grid_dst &grid_dst, const Grid_src &x, const grid_dist_key_dx< Grid_src::dims > &key_src, openfpm::vector< std::vector< comb< Grid_src::dims >>>(&interp_pos)[nst_pos]) | |
| constructor More... | |
| template<typename Tsrc > | |
| void | operator() (Tsrc &t) |
| Interpolate each point in the destination grid for each property. More... | |
Data Fields | |
|
const grid_dist_key_dx < Grid_dst::dims > | key_dst |
| destination point | |
| Grid_dst & | grid_dst |
| destination grid | |
| grid_dist_key_dx< Grid_dst::dims > | key_src |
| source point | |
| const Grid_src & | x |
| source grid | |
|
inline |
constructor
It define the interpolation parameters.
| key_dst | destination point |
| grid_dst | Destination grid |
| x | source grid |
| key_src | source point |
| interp_pos | interpolation points |
Definition at line 117 of file staggered_dist_grid_copy.hpp.
|
inline |
Interpolate each point in the destination grid for each property.
| t | property id |
Definition at line 143 of file staggered_dist_grid_copy.hpp.