OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
interp_ele< Tdst, Grid_dst, Grid_src, nst_pos > Struct Template Reference

this class is a functor for "for_each" algorithm More...

Detailed Description

template<typename Tdst, typename Grid_dst, typename Grid_src, unsigned int nst_pos>
struct interp_ele< Tdst, Grid_dst, Grid_src, nst_pos >

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

Template Parameters
Tdstdestination property of the normal grid
Typeof the destination grid
Typeof 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
 

Constructor & Destructor Documentation

◆ interp_ele()

template<typename Tdst , typename Grid_dst , typename Grid_src , unsigned int nst_pos>
interp_ele< Tdst, Grid_dst, Grid_src, nst_pos >::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] 
)
inline

constructor

It define the interpolation parameters.

Parameters
key_dstdestination point
grid_dstDestination grid
xsource grid
key_srcsource point
interp_posinterpolation points

Definition at line 117 of file staggered_dist_grid_copy.hpp.

Member Function Documentation

◆ operator()()

template<typename Tdst , typename Grid_dst , typename Grid_src , unsigned int nst_pos>
template<typename Tsrc >
void interp_ele< Tdst, Grid_dst, Grid_src, nst_pos >::operator() ( Tsrc &  t)
inline

Interpolate each point in the destination grid for each property.

Parameters
tproperty id

Definition at line 143 of file staggered_dist_grid_copy.hpp.


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