Skip to content

Commit 8f246c1

Browse files
author
Felix Nößler
committed
remove trampling
1 parent 98b8f1c commit 8f246c1

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/2_initialisation/4_preallocation.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,6 @@ function preallocate_vectors(; input_obj)
237237
grazed_share = Array{Float64}(undef, nspecies),
238238
mown = Array{Float64}(undef, nspecies)u"kg / ha",
239239
grazed = Array{Float64}(undef, nspecies)u"kg / ha",
240-
trampled = Array{Float64}(undef, nspecies)u"kg / ha",
241240

242241
## senescence
243242
senescence_rate = Array{Float64}(undef, nspecies),

src/3_biomass/3_management/1_grazing.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function grazing!(; container, LD, above_biomass, actual_height)
55
@unpack lnc = container.traits
66
@unpack η_GRZ, β_GRZ_lnc, β_GRZ_H, κ_GRZ, ϵ_GRZ_minH = container.p
77
@unpack defoliation, grazed_share, relative_lnc, lncinfluence, relative_height, grazed,
8-
trampled, heightinfluence, biomass_scaled, feedible_biomass = container.calc
8+
heightinfluence, biomass_scaled, feedible_biomass = container.calc
99
@unpack nspecies = container.simp
1010

1111
for s in 1:nspecies
@@ -43,16 +43,8 @@ function grazing!(; container, LD, above_biomass, actual_height)
4343
grazed_share .= biomass_scaled ./ sum(biomass_scaled)
4444
@. grazed = grazed_share * total_grazed
4545

46-
#################################### Trampling
47-
# Parameter: β_TRM_height, α_TRM_LD
48-
# for s in 1:nspecies
49-
# height_effect_trampling = min((actual_height[s] / 2.0u"m") ^ β_TRM_height, 1.0)
50-
# proportion_trampled = min(height_effect_trampling * LD * α_TRM_LD, 0.5)
51-
# trampled[s] = feedible_biomass[s] * proportion_trampled
52-
# end
53-
54-
#################################### Add grazed and trampled biomass to defoliation
55-
defoliation .+= grazed .+ trampled
46+
#################################### Add grazed biomass to defoliation
47+
defoliation .+= grazed
5648

5749
return nothing
5850
end

0 commit comments

Comments
 (0)