|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF_MOSTAverage.H>

Public Member Functions | |
| AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE void | clamp_to_held (const int i, const int j, amrex::Real &xp, amrex::Real &yp, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &plo, const amrex::GpuArray< amrex::Real, AMREX_SPACEDIM > &dxi) const |
Public Attributes | |
| amrex::GpuArray< amrex::Box, 5 > | reach |
| amrex::GpuArray< amrex::Box, 5 > | held |
| int | nfields = 0 |
Lateral bounds on the interpolation stencil of the MOST reference points in one box.
The average of field n (U, V, W, T, Qv) reads the positions of the columns in reach[n], its own staggered box grown by the ghost cells the averages fill and the radius, and interpolates from the two cells in x and in y that bracket each point; those cells must lie in held[n], the cells its FAB holds. The tangential speed and virtual temperature averages read U, V, T and Qv at cell-centered columns, which lie in the reaches of those fields.
get_ng_fill leaves the stencil one cell of room at the outermost columns, so a point displaced along the terrain normal by more than a cell can leave the data there, whatever the number of ghost cells.
|
inline |
Move the point (xp,yp) read by column (i,j) the least distance, in x and in y, that puts its stencil in the data of every field whose average reads the column. As set_norm_indices_T does without interpolation, a displacement past the ghost cells then uses the nearest point held; only ghost columns near the edge of the box are moved, whose averages FillBoundary overwrites where boxes abut.
| amrex::GpuArray<amrex::Box,5> MOSTAverage::InterpStencilBounds::held |
Referenced by clamp_to_held(), and MOSTAverage::interp_stencil_bounds().
| int MOSTAverage::InterpStencilBounds::nfields = 0 |
Referenced by clamp_to_held(), and MOSTAverage::interp_stencil_bounds().
| amrex::GpuArray<amrex::Box,5> MOSTAverage::InterpStencilBounds::reach |
Referenced by clamp_to_held(), and MOSTAverage::interp_stencil_bounds().