|
template<typename P > |
AMREX_GPU_DEVICE AMREX_FORCE_INLINE | Linear (const P &p, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const &plo, amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > const &dxi) |
|
Public Member Functions inherited from amrex::ParticleInterpolator::Base< Linear, amrex::Real > |
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | ParticleToMesh (const P &p, amrex::Array4< V > const &arr, int src_comp, int dst_comp, int num_comps, F const &f) |
| A general function for doing particle-to-mesh interpolation for one particle. More...
|
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE void | MeshToParticle (P &p, amrex::Array4< const V > const &arr, int src_comp, int dst_comp, int num_comps, F const &f, G const &g) |
| A general function for doing mesh-to-particle interpolation for one particle. More...
|
|
A class the implements linear (CIC) particle/mesh interpolation.
Usage:
ParticleInterpolator::Linear interp(p, plo, dxi);
interp.ParticleToMesh(p, rho, 0, 0, 1,
{
return part.rdata(comp);
});
#define AMREX_GPU_DEVICE
Definition: AMReX_GpuQualifiers.H:18