![]() |
Block-Structured AMR Software Framework
|
A class the implements nearest grid point particle/mesh interpolation. More...
#include <AMReX_ParticleInterpolators.H>
Public Member Functions | |
| template<typename P > | |
| __device__ | Nearest (const P &p, amrex::GpuArray< amrex::Real, 3 > const &plo, amrex::GpuArray< amrex::Real, 3 > const &dxi) |
Public Member Functions inherited from amrex::ParticleInterpolator::Base< Nearest, int > | |
| __device__ 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. | |
| __device__ 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. | |
Public Attributes | |
| int | weights [3 *stencil_width] |
Public Attributes inherited from amrex::ParticleInterpolator::Base< Nearest, int > | |
| int | index [3] |
| int * | w |
Static Public Attributes | |
| static constexpr int | stencil_width = 1 |
| static constexpr int | nx = (3 >= 1) ? stencil_width - 1 : 0 |
| static constexpr int | ny = (3 >= 2) ? stencil_width - 1 : 0 |
| static constexpr int | nz = (3 >= 3) ? stencil_width - 1 : 0 |
A class the implements nearest grid point particle/mesh interpolation.
Usage:
|
inline |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
| int amrex::ParticleInterpolator::Nearest::weights[3 *stencil_width] |