|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
The average-down of the two-stream force-restore balance's surface fields between two levels whose land masks hold water. More...
#include <AMReX_BoxArray.H>#include <AMReX_GpuQualifiers.H>#include <AMReX_MFIter.H>#include <AMReX_MultiFab.H>#include <AMReX_Vector.H>#include <AMReX_iMultiFab.H>#include "ERF_SEBLandMask.H"

Go to the source code of this file.
Functions | |
| void | seb_average_down_land (const amrex::Vector< const amrex::MultiFab * > &fine, const amrex::Vector< amrex::MultiFab * > &crse, const amrex::iMultiFab &fine_mask, const amrex::iMultiFab &crse_mask, const amrex::IntVect &ratio) |
| void | seb_average_down_land (const amrex::MultiFab &fine, amrex::MultiFab &crse, const amrex::iMultiFab &fine_mask, const amrex::iMultiFab &crse_mask, const amrex::IntVect &ratio) |
| One field: the form above with a single pair. More... | |
The average-down of the two-stream force-restore balance's surface fields between two levels whose land masks hold water.
The balance runs on land columns only (TwoStreamRadiation::advance), and a water column keeps the values it had at the start, at the restart, or when its level was built (the snow layer's water is set to zero there). An average over every fine column would then mix those held values into a coarse land column on a shore, and would overwrite a coarse water column that lies under fine land. Here a coarse land column takes the mean of the fine land columns under it; a coarse water column, and a coarse land column with no fine land column under it, keep their values.
With no water column on either level this is not called: ERF then uses amrex::average_down, as before the mask.
All fields go in one call: the fine land columns are counted once and one ParallelCopy carries every field. A pair with a null pointer on either side is left out.
| fine | the 2D surface fields of the fine level (any number of components each) |
| crse | the same fields of the coarse level; updated under the fine level |
| fine_mask | the fine level's land mask (0 water), on the grids of fine |
| crse_mask | the coarse level's land mask (0 water), on the grids of crse |
| ratio | the refinement ratio, 1 in z |
|
inline |
One field: the form above with a single pair.

|
inline |
Referenced by ERF::post_timestep(), and seb_average_down_land().

