Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Persefone.jl
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Persefone
Persefone.jl
Commits
831e1db2
Commit
831e1db2
authored
1 month ago
by
Marco Matthies
Browse files
Options
Downloads
Patches
Plain Diff
Remove unneeded commented-out code
parent
02ca2723
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/crop/cropmodels.jl
+0
-41
0 additions, 41 deletions
src/crop/cropmodels.jl
with
0 additions
and
41 deletions
src/crop/cropmodels.jl
+
0
−
41
View file @
831e1db2
...
...
@@ -70,44 +70,3 @@ function initfields!(model::SimulationModel)
@info
"Initialised
$
(length(model.farmplots)) farm plots."
end
# # TODO: this function should be moved to the individual crop models,
# # and overloaded on the type of cropstate (see notes above)
# """
# setsoiltype!(farmplot, soiltype, model)
# """
# function setsoiltype!(farmplot::FarmPlot, soiltype::SoilType, model::SimulationModel)
# farmplot.soiltype = soiltype
# if @param(crop.cropmodel) == "aquacrop"
# farmplot.cropstate.soiltype = soiltype
# else
# # do nothing for other cropmodels
# end
# end
# # TODO: move this function to individual crop model files
# """
# makecropstate(model, soiltype)
#
# An internal utility function to initialise one instance of the configured crop growth model.
# """
# function makecropstate(model::SimulationModel, soiltype::SoilType)
# if @param(crop.cropmodel) == "almass"
# phase = (month(model.date) < 3 ? ALMaSS.janfirst : ALMaSS.marchfirst)
# cs = ALMaSS.CropState(
# croptype = model.crops["natural grass"],
# phase = phase,
# )
# elseif @param(crop.cropmodel) == "simple"
# cs = SimpleCrop.CropState(
# model.crops["natural grass"],
# 0.0m
# )
# elseif @param(crop.cropmodel) == "aquacrop"
# croptype = model.crops["natural grass"]
# cs = AquaCropWrapper.CropState(croptype, soiltype, model)
# else
# Base.error("Unhandled crop model '$(@param(crop.cropmodel))' in makecropstate().")
# end
# return cs
# end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment