@@ -5,9 +5,10 @@ using Thermodynamics
55using ClimaLand
66using LazyBroadcast: lazy
77using ClimaCore
8+ using NCDatasets
89using ClimaCore. MatrixFields
910import ClimaCore. MatrixFields: @name , ⋅
10- import ClimaUtilities. TimeVaryingInputs: AbstractTimeVaryingInput
11+ using ClimaUtilities. TimeVaryingInputs: AbstractTimeVaryingInput
1112import ClimaUtilities. TimeManager: ITime, date
1213import LinearAlgebra: I, dot
1314using ClimaLand: AbstractRadiativeDrivers, AbstractAtmosphericDrivers
@@ -383,13 +384,13 @@ end
383384 PrescribedBiomassModel{FT}(
384385 domain,
385386 LAI::AbstractTimeVaryingInput,
386- maxLAI::Union{FT,AbstractSpaceVaryingInput} ,
387+ maxLAI,
387388 toml_dict::CP.ParamDict;
388- SAI::FS = toml_dict["SAI_coeff"] .* maxLAI,
389- RAI::FS = toml_dict["RAI_coeff"] .* maxLAI,
389+ SAI = toml_dict["SAI_coeff"] .* maxLAI,
390+ RAI = toml_dict["RAI_coeff"] .* maxLAI,
390391 rooting_depth = clm_rooting_depth(domain.space.surface),
391392 height = toml_dict["canopy_height"]
392- ) where {FS, FT <: AbstractFloat}
393+ ) where {FT <: AbstractFloat}
393394
394395Creates a PrescribedBiomassModel on the provided domain, using parameters from `toml_dict`,
395396assuming that the SAI and RAI are computed as a linear multiple of the maximum LAI.
@@ -403,13 +404,13 @@ The following default parameters are used:
403404function PrescribedBiomassModel {FT} (
404405 domain,
405406 LAI:: AbstractTimeVaryingInput ,
406- maxLAI:: Union{FT, AbstractSpaceVaryingInput} ,
407+ maxLAI,
407408 toml_dict:: CP.ParamDict ;
408- SAI:: FS = toml_dict[" SAI_coeff" ] .* maxLAI,
409- RAI:: FS = toml_dict[" RAI_coeff" ] .* maxLAI,
409+ SAI = toml_dict[" SAI_coeff" ] .* maxLAI,
410+ RAI = toml_dict[" RAI_coeff" ] .* maxLAI,
410411 rooting_depth = clm_rooting_depth (domain. space. surface),
411412 height = toml_dict[" canopy_height" ],
412- ) where {FS, FT <: AbstractFloat }
413+ ) where {FT <: AbstractFloat }
413414 plant_area_index = PrescribedAreaIndices (LAI, SAI, RAI)
414415 return PrescribedBiomassModel{
415416 FT,
0 commit comments