Skip to content
Snippets Groups Projects
Commit 69eaafeb authored by Marco Matthies's avatar Marco Matthies
Browse files

Return yield in harvest!

parent 1ca5347a
No related branches found
No related tags found
No related merge requests found
...@@ -132,10 +132,6 @@ part of a `FarmPlot`. ...@@ -132,10 +132,6 @@ part of a `FarmPlot`.
events::Vector{Management} = Management[] events::Vector{Management} = Management[]
mature::Bool = false #TODO how do we determine this? mature::Bool = false #TODO how do we determine this?
# biomass::Float64 #XXX I need to figure out how to calculate this
# height::Length{Float64}
# growingdegreedays::Float64
phase::GrowthPhase phase::GrowthPhase
vegddegs::Float64 = 0 # Vegetation growing degree days since sowing vegddegs::Float64 = 0 # Vegetation growing degree days since sowing
ddegs::Float64 = 0 # Growing degree days in current phase ddegs::Float64 = 0 # Growing degree days in current phase
...@@ -840,7 +836,7 @@ function harvest!(cs::CropState, model::SimulationModel) ...@@ -840,7 +836,7 @@ function harvest!(cs::CropState, model::SimulationModel)
setphase!(cs, phase, model) setphase!(cs, phase, model)
cs.mature = false cs.mature = false
# height & LAI will be automatically adjusted by the growth function # height & LAI will be automatically adjusted by the growth function
#TODO calculate and return yield return cs.veg_biomass # TODO: units ok of cs.veg_biomass ?
end end
#TODO fertilise!() #TODO fertilise!()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment