Skip to content

Commit

Permalink
fix params [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jul 7, 2024
1 parent 5982a80 commit 2a953fe
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/integrated/soil_canopy_tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
# The domain is defined similarly to the soil domain described above.
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(FT; ν = soil_ν);
soilco2_ps = SoilCO2ModelParameters(FT);

# soil microbes args
Csom = (z, t) -> eltype(z)(5); # kg C m⁻³, this is a guess, not measured at the site
Expand Down
5 changes: 1 addition & 4 deletions experiments/integrated/fluxnet/ozark_pft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
# Soil microbes model
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(
FT;
ν = soil_ν, # same as soil
)
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
Csom = (z, t) -> eltype(z)(5.0)
Expand Down
5 changes: 1 addition & 4 deletions experiments/integrated/fluxnet/run_fluxnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
# Soil microbes model
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(
FT;
ν = soil_ν, # same as soil
)
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
Csom = (z, t) -> eltype(z)(5.0)
Expand Down
6 changes: 1 addition & 5 deletions experiments/integrated/global/global_parameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,4 @@ z0_m = FT(0.13) * h_canopy
z0_b = FT(0.1) * z0_m


soilco2_ps = Soil.Biogeochemistry.SoilCO2ModelParameters(
FT;
ν = 1.0,# INCORRECT! This should be the same as the soil porosity, but
# currently, SoilCO2 does not support spatially varying parameters
)
soilco2_ps = Soil.Biogeochemistry.SoilCO2ModelParameters(FT)
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
# Soil microbes model
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(FT; ν = soil_ν)
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
Csom = (z, t) -> eltype(z)(5.0)
Expand Down
2 changes: 1 addition & 1 deletion experiments/integrated/performance/profile_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
# Soil microbes model
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(FT; ν = soil_ν)
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
Csom = (z, t) -> eltype(z)(5.0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ end
# or, another example, parameters calculated from other parameters (e.g., κ_solid)
# the structs below only contain unique params, that are given as number (not computed FTwhere)

struct HeteroRespP # differs from SoilCO2ModelParameters because of porosity
θ_a100::FT
struct HeteroRespP
D_ref::FT
b::FT
D_liq::FT
α_sx::FT
Ea_sx::FT
Expand Down
3 changes: 0 additions & 3 deletions lib/ClimaLandSimulations/src/Fluxnet/run_fluxnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ function run_fluxnet(

soilco2_ps = SoilCO2ModelParameters(
FT;
ν = params.soil.ν,
θ_a100 = params.hetero_resp.θ_a100,
D_ref = params.hetero_resp.D_ref,
b = params.hetero_resp.b,
D_liq = params.hetero_resp.D_liq,
# DAMM
α_sx = params.hetero_resp.α_sx,
Expand Down

0 comments on commit 2a953fe

Please sign in to comment.