|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
The fill of a new fine level's force-restore surface fields from its parent (ERF::fill_seb_from_coarse). More...
#include <AMReX_BCRec.H>#include <AMReX_FillPatchUtil.H>#include <AMReX_Geometry.H>#include <AMReX_GpuQualifiers.H>#include <AMReX_Interpolater.H>#include <AMReX_MFIter.H>#include <AMReX_MultiFab.H>#include <AMReX_Reduce.H>#include <AMReX_Vector.H>#include <AMReX_iMultiFab.H>#include "ERF_SEBLandMask.H"

Go to the source code of this file.
Functions | |
| void | seb_extend_halo (amrex::MultiFab &mf, const amrex::Geometry &geom) |
| Fill the halo of a coarse 2D surface field before it is interpolated. More... | |
| amrex::Long | seb_fill_from_coarse_over_land (amrex::MultiFab &fine, const amrex::MultiFab &crse, const amrex::iMultiFab &crse_mask, const amrex::iMultiFab *fine_mask, const amrex::Geometry &cgeom, const amrex::Geometry &fgeom, const amrex::IntVect &ratio, const amrex::Vector< amrex::BCRec > &bcs) |
Fill fine from crse when the coarse land mask holds water. More... | |
The fill of a new fine level's force-restore surface fields from its parent (ERF::fill_seb_from_coarse).
|
inline |
Fill the halo of a coarse 2D surface field before it is interpolated.
FillBoundary sets the interior and periodic ghost columns. Across a non-periodic face a ghost column takes the nearest column inside the domain: the slope stencil of the interpolater reads it for every boundary type. A periodic ghost column is left as FillBoundary set it. InterpFromCoarseLevel reads it twice, from this halo and from the periodic image of the valid column, and the two must agree.
Referenced by ERF::fill_seb_from_coarse(), ERF::interp_psfc_from_coarse(), and seb_fill_from_coarse_over_land().


|
inline |
Fill fine from crse when the coarse land mask holds water.
A water column holds a value the balance never updated. The fill keeps it out of the land columns:
Neighbors beyond a non-periodic domain face are left out. RemakeLevel copies the old fine values on top afterwards, so only columns new to the level keep this fill.
| fine | the fine field; valid and ghost columns inside the domain are set |
| crse | the coarse field, after seb_extend_halo() |
| crse_mask | the coarse land mask, ghost columns filled, at least one ghost column |
| fine_mask | the fine land mask with the ghost columns of fine, or nullptr (all land) |
| bcs | one boundary record per component of fine |
Referenced by ERF::fill_seb_from_coarse().

