diff --git a/src/lightextinction_advanced.cpp b/src/lightextinction_advanced.cpp index 8a7123e50..c3ca59e4b 100644 --- a/src/lightextinction_advanced.cpp +++ b/src/lightextinction_advanced.cpp @@ -353,7 +353,7 @@ NumericVector layerSunlitFraction(NumericMatrix LAIme, NumericMatrix LAImd, double s2=0.0; for(int j = 0;j ```{r, echo=FALSE, results='asis', warning = FALSE, message=FALSE} -eval_Eplant <- TRUE +eval_Eplant <- any(startsWith(names(df_site$SiteData[[1]]$measuredData),"E_")) if(eval_Eplant) { res <- knitr::knit_child(file.path(this_path,'_Eplant_Evaluation_child.Rmd'), quiet = TRUE) cat(res, sep = '\n') diff --git a/vignettes/runmodels/AdvancedWaterEnergyBalance.Rmd b/vignettes/runmodels/AdvancedWaterEnergyBalance.Rmd index 76c0a4252..d077c56c8 100644 --- a/vignettes/runmodels/AdvancedWaterEnergyBalance.Rmd +++ b/vignettes/runmodels/AdvancedWaterEnergyBalance.Rmd @@ -61,7 +61,7 @@ Apart from data inputs, the behaviour of simulation models is controlled using a control <- defaultControl("Sperry") ``` -To use the advanced water balance model we must change the values of `transpirationMode` to switch from `"Granier"` to either `"Sperry"` or `"Cochard"`. +To use the advanced water balance model we must change the values of `transpirationMode` to switch from `"Granier"` to either `"Sperry"` or `"Sureau"`. ### Water balance input object A last object is needed before calling simulation functions, called `spwbInput`. It consists in the compilation of aboveground, belowground parameters and the specification of additional parameter values for each plant cohort. This is done by calling function `forest2spwbInput()`: