5#ifndef OPENFPM_PDATA_DCPSEINTERPOLATION_HPP
6#define OPENFPM_PDATA_DCPSEINTERPOLATION_HPP
7#include "DCPSE/Dcpse.hpp"
21template<
typename particlesFrom_type,
typename particlesTo_type>
27 particlesFrom_type & particlesFrom;
28 particlesTo_type & particlesTo;
43 PPInterpolation(particlesFrom_type &particlesFrom,particlesTo_type &particlesTo,
unsigned int ord,
typename particlesFrom_type::stype rCut,
44 double oversampling_factor = dcpse_oversampling_factor,
45 support_options opt = support_options::RADIUS)
46 :particlesFrom(particlesFrom),particlesTo(particlesTo)
50 dcpse =
new Dcpse<particlesFrom_type::dims, particlesFrom_type,particlesTo_type>(particlesFrom,particlesTo, p, ord, rCut, oversampling_factor, opt);
54 delete (Dcpse<particlesFrom_type::dims, particlesFrom_type, particlesTo_type> *) dcpse;
64 template<
unsigned int prp1,
unsigned int prp2>
66 auto dcpse_temp = (Dcpse<particlesFrom_type::dims, particlesFrom_type, particlesTo_type>*) dcpse;
67 dcpse_temp->template p2p<prp1,prp2>();
98 auto dcpse_temp = (Dcpse<particlesFrom_type::dims, particlesFrom_type, particlesTo_type> *) dcpse;
99 dcpse_temp->initializeUpdate(particlesFrom,particlesTo);
Class for Creating the DCPSE Operator For the function approximation objects and computes DCPSE Kerne...
void update()
Method for Updating the DCPSE Operator by recomputing DCPSE Kernels.
PPInterpolation(particlesFrom_type &particlesFrom, particlesTo_type &particlesTo, unsigned int ord, typename particlesFrom_type::stype rCut, double oversampling_factor=dcpse_oversampling_factor, support_options opt=support_options::RADIUS)
Constructor for Creating the DCPSE Operator Dx and objects and computes DCPSE Kernels.
This class implement the point shape in an N-dimensional space.
__device__ __host__ void zero()
Set to zero the point coordinate.