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

Public Member Functions | |
| GroundAverageDown (const amrex::BoxArray &a_fba, const amrex::DistributionMapping &a_fdm, const amrex::IntVect &a_rr, int a_kf, int a_kc) | |
| void | apply (const amrex::MultiFab &a_fine, amrex::MultiFab &a_crse, const amrex::Real a_scale, const int a_fcomp=0, const int a_ccomp=0) |
Private Attributes | |
| amrex::BoxArray | m_fba |
| amrex::DistributionMapping | m_fdm |
| amrex::IntVect | m_rr |
| int | m_kf |
| amrex::Vector< int > | m_fine_box |
| amrex::MultiFab | m_tmp |
Restriction of a quantity held in the ground layer of cells (a surface accumulation) from a fine level to the coarse level below it. Each coarse ground cell under a fine box that stands on the ground gets a scale times the sum of the rr[0]*rr[1] fine ground cells above it: the inverse area for a depth, 1 for an amount per cell. The coarse ground boxes, distributed with the fine boxes they lie under, are built once and serve every quantity restricted with them.
|
inline |
| a_fba,a_fdm | BoxArray and DistributionMapping of the fine data |
| a_rr | refinement ratio between the two levels |
| a_kf,a_kc | index of the ground layer on the fine and on the coarse level |
|
inline |
Component a_ccomp of a_crse = a_scale times the sum of the fine ground cells of component a_fcomp of a_fine, in the coarse ground cells under the fine level. a_fine must be defined on the fine BoxArray and DistributionMapping given to the constructor.
Referenced by ERF::average_down_precip_accumulators().


|
private |
Referenced by apply().
|
private |
Referenced by apply().
|
private |
Referenced by apply(), and GroundAverageDown().
|
private |
Referenced by apply().
|
private |
Referenced by apply().
|
private |
Referenced by apply(), and GroundAverageDown().