Skip to content

Commit 267872b

Browse files
committed
Change LAI bound to <1
1 parent debd937 commit 267872b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/modules/Simple_Canopy.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,12 @@ void Simple_Canopy::init(mesh& domain)
595595
d.LAI = face->veg_attribute("LAI");
596596

597597
// this parameterization just doesn't work well for LAI below 1.5, especially with tall trees
598-
if(d.CanopyHeight > 0 && d.LAI < 1.5)
598+
if(d.CanopyHeight > 0 && d.LAI < 1)
599599
{
600-
SPDLOG_ERROR("CanopyHeight was defined for triangle global_id={} but LAI < 1.5; Setting CanopyHeight to zero", face->cell_global_id);
600+
SPDLOG_ERROR("CanopyHeight was defined for triangle global_id={} but LAI < 1; Setting CanopyHeight to 0.25 (grass)", face->cell_global_id);
601601

602-
d.CanopyHeight = 0;
603-
// CHM_THROW_EXCEPTION(missing_value_error, "CanopyHeight was defined but LAI is zero.");
602+
d.CanopyHeight = 0.25;
603+
//
604604
}
605605

606606
// Get Canopy type (CRHM canop classifcation: Canopy, Clearing, or Gap)

0 commit comments

Comments
 (0)