Nearest Neighbor interpolation for GhostLayerFields.
Provides access to a field with real valued coordinates. The value of the nearest neighbor is returned.
Template parameter GlField has to be a GhostLayerField or a class that implements the methods CellInterval xyzSizeWithGhostLayer() ResType get( cell_idx_t x, cell_idx_t y, cell_idx_t z )
Coordinate System:
#include <NearestNeighborInterpolator.h>
Public Types | |
using | value_type = typename GlField::value_type |
Public Member Functions | |
NearestNeighborInterpolator (const GlField &fieldToInterpolate) | |
value_type | operator() (real_t x, real_t y, real_t z) |
value_type | operator() (real_t x, real_t y, real_t z, cell_idx_t f) |
const AABB & | getValidRegion () const |
Static Public Attributes | |
static const uint_t | F_SIZE = GlField::F_SIZE |
Protected Attributes | |
const GlField & | field_ |
AABB | validRegion_ |
using walberla::field::NearestNeighborInterpolator< GlField >::value_type = typename GlField::value_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
protected |
|
protected |