The surface precipitation rate of each level's step, for the force-restore hydrology (ERF_ForceRestoreHydrologyState.H) and snow layer (ERF_ForceRestoreSnowState.H), with erf.radiation.seb_precipitation_source.
More...
|
| void | resize (int nlevs_max) |
| |
| void | define_level (int lev, const RadChoice &rc, const amrex::BoxArray &ba2d, const amrex::DistributionMapping &dm) |
| | Allocate the level's fields; a no-op without erf.radiation.seb_precipitation_source. More...
|
| |
| bool | defined (int lev) const noexcept |
| | True once define_level allocated lev. More...
|
| |
| bool | split () const noexcept |
| | True when the rate is split into rain and frozen precipitation. More...
|
| |
| void | begin_step (int lev, const SurfacePrecipAccumulationSources &sources, int klo) |
| | Store the accumulation [kg/m^2] at the start of the level's step. When no step used the rate of the previous end_step, the earlier start is kept. More...
|
| |
| void | end_step (int lev, const SurfacePrecipAccumulationSources &sources, int klo, amrex::Real dt) |
| | The rate [kg/m^2/s]: the accumulation now minus the one begin_step stored, over the time since that start; never negative. Zero when begin_step has not run for this step. More...
|
| |
| ForceRestorePrecipInput | rain (int lev, amrex::Real dt) const noexcept |
| | The rain a step of length dt takes (the total without the snow layer). More...
|
| |
| ForceRestorePrecipInput | frozen (int lev, amrex::Real dt) const noexcept |
| | The frozen precipitation a step of length dt takes; none unless split(). More...
|
| |
| void | mark_used (int lev) noexcept |
| | The steps of this level took the rate: it is not applied again. More...
|
| |
| const amrex::MultiFab * | rate (int lev) const noexcept |
| | The rate of the last end_step [kg/m^2/s] (Comp components), or nullptr. For output. More...
|
| |
The surface precipitation rate of each level's step, for the force-restore hydrology (ERF_ForceRestoreHydrologyState.H) and snow layer (ERF_ForceRestoreSnowState.H), with erf.radiation.seb_precipitation_source.
Owned by TwoStreamRadiation. Per level, and per step:
- begin_step(...) at the start of ERF::Advance, before the dycore and microphysics, stores the surface precipitation accumulation of every column;
- end_step(...) after microphysics turns its change since that start into the rate;
- the hydrology and snow steps take the rate through rain(...) and frozen(...);
- mark_used(...) after them closes the step. A rate is used once. When no step followed end_step (the balance skips a new level's first step), begin_step keeps the earlier start and the next end_step gives the mean rate over both steps; the scale of rain(...) and frozen(...) is then the time since that start over the step, so the carried precipitation is counted once, in full. When a step runs without a new end_step (a level whose radiation is interpolated has neither begin_step nor end_step), the scale is zero: the rate of an earlier step is not applied again.
Without the snow layer the rate has one component, the total precipitation. With erf.radiation.seb_snow_enable it has two, the rain (Rain) and the frozen part (Frozen), filled in one pass over the accumulators. The rate needs no checkpoint or regrid handling: both captures happen inside one ERF::Advance of the level.