Skip to content

Commit

Permalink
fixingbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jul 24, 2024
1 parent 602f06f commit 9525d2f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/integrated/soil_canopy_tutorial.jl
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ soilco2_ps = SoilCO2ModelParameters(FT);

# Specify the spatially varying soil organic carbon as a ClimaCore field.
# One can also specify SOC using a TimeVaryingInput, or SpaceVaryingInput (reading data from files)
subsurface_space = soil_domain.space.subsurface
Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(
ClimaCore.Fields.zeros(subsurface_space) .+ 5,
)
Expand Down
1 change: 1 addition & 0 deletions experiments/benchmarks/land.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import Interpolations
using Insolation

import ClimaUtilities.TimeVaryingInputs: TimeVaryingInput
import ClimaUtilities.SpaceVaryingInputs: SpaceVaryingInput
import ClimaUtilities.Regridders: InterpolationsRegridder
import ClimaUtilities.ClimaArtifacts: @clima_artifact
import ClimaParams as CP
Expand Down
2 changes: 1 addition & 1 deletion experiments/integrated/fluxnet/ozark_pft.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(FT)

subsurface_space = soil_domain.space.subsurface
Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(
ClimaCore.Fields.zeros(subsurface_space) .+ 5,
)
Expand Down
2 changes: 1 addition & 1 deletion experiments/integrated/fluxnet/run_fluxnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ soil_model_type = Soil.EnergyHydrology{FT}
soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}

soilco2_ps = SoilCO2ModelParameters(FT)

subsurface_space = soil_domain.space.subsurface
Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(
ClimaCore.Fields.zeros(subsurface_space) .+ 5,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
subsurface_space = soil_domain.space.subsurface
Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(
ClimaCore.Fields.zeros(subsurface_space) .+ 5,
)
Expand Down
1 change: 1 addition & 0 deletions experiments/integrated/performance/profile_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ soilco2_type = Soil.Biogeochemistry.SoilCO2Model{FT}
soilco2_ps = SoilCO2ModelParameters(FT)

# soil microbes args
subsurface_space = soil_domain.space.subsurface
Csom = ClimaLand.PrescribedSoilOrganicCarbon{FT}(
ClimaCore.Fields.zeros(subsurface_space) .+ 5,
)
Expand Down
2 changes: 1 addition & 1 deletion src/shared_utilities/drivers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ Creates and returns a function which updates the driver variables
in the case of a PrescribedSoilOrganicCarbon.
"""
function make_update_drivers(
d::PrescribedSoilOrganicCarbon{FT, AbstractTimeVaryingInput},
d::PrescribedSoilOrganicCarbon{FT, <:AbstractTimeVaryingInput},
) where {FT}
function update_drivers!(p, t)
evaluate!(p.drivers.soc, d.soc, t)
Expand Down

0 comments on commit 9525d2f

Please sign in to comment.