1 #ifndef ERF_SEB_SKIN_INIT_H_
2 #define ERF_SEB_SKIN_INIT_H_
4 #include <AMReX_GpuQualifiers.H>
6 #include <AMReX_Math.H>
7 #include <AMReX_MultiFab.H>
8 #include <AMReX_REAL.H>
9 #include <AMReX_iMultiFab.H>
30 [[nodiscard]] AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
33 const amrex::Real t_hi) noexcept
35 return amrex::Math::isfinite(temperature) && temperature >= t_lo && temperature <= t_hi;
60 const amrex::iMultiFab* land_mask, amrex::Real t_lo, amrex::Real t_hi);
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool seb_skin_init_usable(const amrex::Real temperature, const amrex::Real t_lo, const amrex::Real t_hi) noexcept
True when temperature [K] can start the skin: finite and inside the range the balance holds the skin ...
Definition: ERF_SEBSkinInit.H:32
SEBSkinInitReport seb_init_skin_from_file(amrex::MultiFab &t_sfc, const amrex::MultiFab &file_skin, const amrex::iMultiFab *land_mask, amrex::Real t_lo, amrex::Real t_hi)
Copy file_skin [K] into the land columns of t_sfc [K], valid columns only.
What seb_init_skin_from_file did on the boxes of this rank.
Definition: ERF_SEBSkinInit.H:40
amrex::Real t_max
highest value set [K]; meaningful when n_set > 0
Definition: ERF_SEBSkinInit.H:44
amrex::Real t_min
lowest value set [K]; meaningful when n_set > 0
Definition: ERF_SEBSkinInit.H:43
amrex::Long n_set
land columns that took the file's value
Definition: ERF_SEBSkinInit.H:41
amrex::Long n_refused
land columns whose file value is not usable (left as they were)
Definition: ERF_SEBSkinInit.H:42