Return an actionable diagnostic for an invalid type-2 canopy LAI maximum. The caller supplies the source description so file-backed and input-backed errors can identify where the bad value came from without aborting here.
38 if (std::isfinite(
static_cast<double>(laimax)) &&
39 laimax >= amrex::Real(0.0) && laimax < amrex::Real(1.0)) {
44 message << source <<
" must satisfy 0 <= laimax < 1 (got " << laimax <<
")";
Referenced by erf_detail_ForestDrag::compute_lad_normalization(), and ForestDrag::ForestDrag().