|
template<typename P > |
AMREX_GPU_DEVICE AMREX_FORCE_INLINE | Nearest (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< Nearest, int > |
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 nearest grid point particle/mesh interpolation.
Usage:
ParticleInterpolator::Nearest interp(p, plo, dxi);
interp.MeshToParticle(p, count, 0, 0, 1,
int i, int j, int k, int comp)
{
return arr(i, j, k, comp);
},
int comp, int val)
{
part.idata(comp) = val;
});
#define AMREX_GPU_DEVICE
Definition: AMReX_GpuQualifiers.H:18
Definition: AMReX_Array4.H:61