@@ -7,6 +7,7 @@ import ClimaTimeSteppers as CTS
77import Thermodynamics as TD
88import ClimaLand as CL
99import ClimaLand. Parameters as LP
10+ import ClimaParams as CP
1011import ClimaDiagnostics as CD
1112import ClimaCoupler: Checkpointer, FluxCalculator, Interfacer
1213using NCDatasets
@@ -77,6 +78,7 @@ function BucketSimulation(
7778 albedo_type:: String = " map_static" ,
7879 land_initial_condition:: String = " " ,
7980 energy_check:: Bool = false ,
81+ parameter_files = [],
8082) where {FT, TT <: Union{Float64, ITime} }
8183 @assert domain_type == " sphere" " Currently only spherical shell domains are supported; single column may be supported in the future."
8284
@@ -117,7 +119,13 @@ function BucketSimulation(
117119 κ_soil = FT (1.5 ) # soil conductivity
118120 ρc_soil = FT (2e6 ) # soil volumetric heat capacity
119121
120- params = CL. Bucket. BucketModelParameters (FT; albedo, z_0m, z_0b, τc, σS_c, W_f, κ_soil, ρc_soil)
122+ params = if isempty (parameter_files)
123+ CL. Bucket. BucketModelParameters (FT; albedo, z_0m, z_0b, τc, σS_c, W_f, κ_soil, ρc_soil)
124+ else
125+ toml_dict = CP. create_toml_dict (FT; override_file = CP. merge_toml_files (parameter_files; override = true ))
126+ # τc should be the only exception, it depends on `dt`
127+ CL. Bucket. BucketModelParameters (toml_dict; z_0m, z_0b, albedo, τc)
128+ end
121129
122130 n_vertical_elements = 7
123131 # Note that this does not take into account topography of the surface, which is OK for this land model.
0 commit comments