Skip to content

Commit c5663f8

Browse files
committed
no autoresp change
1 parent 144dc52 commit c5663f8

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "1.7.0"
44
authors = ["Clima Land Team"]
55

66
[deps]
7+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
78
ClimaComms = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"
89
ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884"
910
ClimaDiagnostics = "1ecacbb8-0713-4841-9a07-eb5aa8a2d53f"
@@ -25,7 +26,6 @@ Thermodynamics = "b60c26fb-14c3-4610-9d3e-2d17fe7ff00c"
2526

2627
[weakdeps]
2728
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
28-
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
2929
ClimaAnalysis = "29b5916a-a76c-4e73-9657-3c8fd22e65e6"
3030
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
3131
DelimitedFiles = "8bb1440f-4735-579b-a4ab-409b98df4dab"

src/standalone/Vegetation/autotrophic_respiration.jl

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,12 @@ function compute_autrophic_respiration(
139139
)
140140

141141
(; ne, ηsl, σl, μr, μs, Rel) = model.parameters
142-
FT = typeof(LAI)
143-
144-
# Root and stem maintenance respiration: LAI-independent (trees keep roots and stems in winter)
145-
Ra_root = Rd * μr * RAI
146-
Ra_stem = Rd * μs * ηsl * h * SAI / σl
147-
148-
# Leaf maintenance and growth respiration: canopy-scaled (→ 0 as LAI → 0)
149-
Rpm_leaf = Rd * β
150-
Rg = plant_respiration_growth(Rel, An, Rpm_leaf)
151-
canopy_scale = (1 - exp(-K * LAI * Ω)) / (K * Ω)
152-
Ra_canopy = max(FT(0), Rpm_leaf + Rg) * canopy_scale
153-
154-
return Ra_canopy + Ra_root + Ra_stem
142+
Nl, Nr, Ns =
143+
nitrogen_content(ne, Vcmax25, LAI, SAI, RAI, ηsl, h, σl, μr, μs)
144+
Rpm = plant_respiration_maintenance(Rd, β, Nl, Nr, Ns)
145+
Rg = plant_respiration_growth(Rel, An, Rpm)
146+
Ra = Rpm + Rg
147+
return Ra * (1 - exp(-K * LAI * Ω)) / (K * Ω) # adjust to canopy level
155148
end
156149

157150
Base.broadcastable(model::AutotrophicRespirationModel) = tuple(model) # this is so that @. does not broadcast on Ref(canopy.autotrophic_respiration)
@@ -211,7 +204,7 @@ function nitrogen_content(
211204
μr::FT, # Ratio root nitrogen to top leaf nitrogen (-), typical value 1.0
212205
μs::FT, # Ratio stem nitrogen to top leaf nitrogen (-), typical value 0.1
213206
) where {FT}
214-
Sc = ηsl * h * SAI
207+
Sc = ηsl * h * LAI * ClimaLand.heaviside(SAI)
215208
Rc = σl * RAI
216209
nm = Vcmax25 / ne
217210
Nl = nm * σl * LAI

0 commit comments

Comments
 (0)