Skip to content

some bugs reports when lauching sureau multilayersoil

****(1) when creating soil_parameters with multiple layer this can trigger errors when lauching for some unknown reasons. for example :

using par_soil <- create.soil.parameters(depth = c(0.2,0.5,1,2,3,4)) then running the model, this triggers the following error : [ 0%] Starting SurEau Error in while ((!LcavitWellComputed || !ScavitWellComputed) && nwhilecomp < : missing value where TRUE/FALSE needed whenever layer depth are set manually this error happens.

****(2) When creating soil parameters with soil depth < maxDepthMax ==> error when creating the vegetation file with the error message : "Error in create.vegetation.parameters(filePath = vegetationParameters_path, : Parameter 'rootDepthMax' is smaller than any 'depth' provided" (1) this should be a warning and (2) the error message is unclear it shoud rather be : "Error in create.vegetation.parameters(filePath = vegetationParameters_path, : Parameter 'rootDepthMax' is ****HIGHER than any 'depth' provided"