ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_detail_SurfaceLayer::LsmFluxColumn Struct Reference
Collaboration diagram for erf_detail_SurfaceLayer::LsmFluxColumn:

Public Member Functions

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool from_grid (int ii, int jj) const noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int i (int ii, int jj) const noexcept
 
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int j (int ii, int jj) const noexcept
 

Public Attributes

NearestColumn in_domain
 
NearestColumn in_grid
 
Array4< const int > held
 1 where a grid of the level holds the column More...
 

Detailed Description

The column whose LSM fluxes a face stress reads for cell (ii,jj), at most one cell beyond the grid. A column that another grid of the level or a periodic image holds is read where it is (in_domain only maps it into the domain or its periodic images). Any other column beyond the grid, at a coarse/fine boundary or outside a non-periodic domain, holds no current LSM flux, and compute_fluxes and compute_sfc_params_from_lsm_fluxes set its u* from the grid's nearest column, so it reads that column. Without a held mask, every column inside the domain counts as held.

Member Function Documentation

◆ from_grid()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool erf_detail_SurfaceLayer::LsmFluxColumn::from_grid ( int  ii,
int  jj 
) const
inlinenoexcept
171 { return held && held(ii,jj,0) == 0; }
Array4< const int > held
1 where a grid of the level holds the column
Definition: ERF_SurfaceLayer.cpp:168

◆ i()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int erf_detail_SurfaceLayer::LsmFluxColumn::i ( int  ii,
int  jj 
) const
inlinenoexcept
174 { return from_grid(ii,jj) ? in_grid.i(ii) : in_domain.i(ii); }
NearestColumn in_grid
Definition: ERF_SurfaceLayer.cpp:167
NearestColumn in_domain
Definition: ERF_SurfaceLayer.cpp:166
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool from_grid(int ii, int jj) const noexcept
Definition: ERF_SurfaceLayer.cpp:171
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int i(int ii) const noexcept
Definition: ERF_SurfaceLayer.cpp:39
Here is the call graph for this function:

◆ j()

AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int erf_detail_SurfaceLayer::LsmFluxColumn::j ( int  ii,
int  jj 
) const
inlinenoexcept
177 { return from_grid(ii,jj) ? in_grid.j(jj) : in_domain.j(jj); }
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE int j(int jj) const noexcept
Definition: ERF_SurfaceLayer.cpp:42
Here is the call graph for this function:

Member Data Documentation

◆ held

Array4<const int> erf_detail_SurfaceLayer::LsmFluxColumn::held

1 where a grid of the level holds the column

◆ in_domain

NearestColumn erf_detail_SurfaceLayer::LsmFluxColumn::in_domain

◆ in_grid

NearestColumn erf_detail_SurfaceLayer::LsmFluxColumn::in_grid

The documentation for this struct was generated from the following file: