1 #ifndef ERF_SEB_SOIL_INIT_H_
2 #define ERF_SEB_SOIL_INIT_H_
7 #include <AMReX_MultiFab.H>
8 #include <AMReX_REAL.H>
9 #include <AMReX_Vector.H>
10 #include <AMReX_iMultiFab.H>
72 amrex::Vector<amrex::Real>& weights);
105 const amrex::Vector<amrex::Real>& weights,
106 const amrex::iMultiFab* land_mask,
107 amrex::Real q_lo, amrex::Real q_hi);
constexpr amrex::Real seb_soil_depth_rel_tol
Relative shortfall of the file's soil depth that seb_soil_layer_weights accepts: the thicknesses are ...
Definition: ERF_SEBSoilInit.H:40
bool seb_soil_layer_weights(const amrex::Vector< amrex::Real > &thickness, amrex::Real depth, amrex::Vector< amrex::Real > &weights)
The weights w_n of the mean over the top depth [m] of soil layers with thicknesses thickness [m],...
constexpr amrex::Real seb_soil_value_rel_tol
Relative distance outside [q_lo, q_hi] at which seb_init_soil_moisture_from_file still takes a mean,...
Definition: ERF_SEBSoilInit.H:51
SEBSoilInitReport seb_init_soil_moisture_from_file(amrex::MultiFab &q, const amrex::MultiFab &file_moisture, const amrex::Vector< amrex::Real > &weights, const amrex::iMultiFab *land_mask, amrex::Real q_lo, amrex::Real q_hi)
Write sum_n weights[n] file_moisture(n) into the land columns of q, valid columns only.
@ q
Definition: ERF_WSM6.H:296
real(c_double), parameter epsilon
Definition: ERF_module_model_constants.F90:12
What seb_init_soil_moisture_from_file did on the boxes of this rank.
Definition: ERF_SEBSoilInit.H:76
amrex::Real q_min
lowest value set [m^3/m^3]; meaningful when n_set > 0
Definition: ERF_SEBSoilInit.H:79
amrex::Real q_refused_max
highest finite refused mean; the lowest Real when no refused mean is finite
Definition: ERF_SEBSoilInit.H:82
amrex::Long n_refused
land columns whose mean is not usable (left as they were)
Definition: ERF_SEBSoilInit.H:78
amrex::Long n_set
land columns that took the file's mean
Definition: ERF_SEBSoilInit.H:77
amrex::Real q_max
Definition: ERF_SEBSoilInit.H:80