OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
inte_template< np, prp_g, prp_v, m2p_or_p2m > Struct Template Reference

Class that select the operation to do differently if we are doing Mesh to particle (m2p) or particle to mesh (p2m) More...

Detailed Description

template<unsigned int np, unsigned int prp_g, unsigned int prp_v, unsigned int m2p_or_p2m>
struct inte_template< np, prp_g, prp_v, m2p_or_p2m >

Class that select the operation to do differently if we are doing Mesh to particle (m2p) or particle to mesh (p2m)

Template Parameters
prp_gproperty of the grid to interpolate
prp_vproperty of the vector to interpolate
Parameters
M2Por P2M

Definition at line 108 of file interpolation.hpp.

#include <interpolation.hpp>

Static Public Member Functions

template<unsigned int np_a_int, typename grid , typename vector , typename iterator >
static void value (grid &gd, vector &vd, const grid_dist_lin_dx &k_dist, iterator &key_p, typename vector::stype(&a_int)[np_a_int], const size_t &key)
 Evaluate the interpolation.
 

Member Function Documentation

◆ value()

template<unsigned int np, unsigned int prp_g, unsigned int prp_v, unsigned int m2p_or_p2m>
template<unsigned int np_a_int, typename grid , typename vector , typename iterator >
static void inte_template< np, prp_g, prp_v, m2p_or_p2m >::value ( grid gd,
vector &  vd,
const grid_dist_lin_dx k_dist,
iterator &  key_p,
typename vector::stype(&)  a_int[np_a_int],
const size_t &  key 
)
inlinestatic

Evaluate the interpolation.

Template Parameters
npnumber of kernel points in one direction
gridtype of grid
vectortype of vector
iteratortype of the iterator
Parameters
gdgrid for interpolation
vdvector for interpolation
k_distgrid key grid point for interpolation
key_pparticle for interpolation
a_intinterpolation coefficients pre-calculated
keyindicate which pre-calculated coefficient we have to use

Definition at line 125 of file interpolation.hpp.


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