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

ALMaSS crop model: rename recalculate_bugs_n_stuff! to recalculate_vegetation!

parent 7d2c01e3
Branches
No related tags found
No related merge requests found
...@@ -701,7 +701,8 @@ function stepagent!(cs::CropState, model::SimulationModel) ...@@ -701,7 +701,8 @@ function stepagent!(cs::CropState, model::SimulationModel)
cs.LAtotal = 1.1 * cs.LAgreen cs.LAtotal = 1.1 * cs.LAgreen
end end
recalculate_bugs_n_stuff!(cs, model) # Note: calls `VegElement::RecalculateBugsNStuff()` in the original ALMaSS code
recalculate_vegetation!(cs, model)
# TODO ignored: ResetGeese() # TODO ignored: ResetGeese()
# TODO ignored: Deal with any possible unsprayed margin, transferring info as necessary # TODO ignored: Deal with any possible unsprayed margin, transferring info as necessary
...@@ -729,7 +730,7 @@ end ...@@ -729,7 +730,7 @@ end
# Function in original ALMaSS code: # Function in original ALMaSS code:
# `void VegElement::RecalculateBugsNStuff(void)` from `Landscape/Elements.cpp`, line 1704 # `void VegElement::RecalculateBugsNStuff(void)` from `Landscape/Elements.cpp`, line 1704
function recalculate_bugs_n_stuff!(cs::CropState, model::SimulationModel) function recalculate_vegetation!(cs::CropState, model::SimulationModel)
# This is the heart of the dynamics of vegetation elements. It # This is the heart of the dynamics of vegetation elements. It
# calculates vegetation cover and uses this to determine # calculates vegetation cover and uses this to determine
# vegetation biomass. It also calculates spilled grain and goose # vegetation biomass. It also calculates spilled grain and goose
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment