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

Fixes for SimpleCrop unit tests

parent d141b3d3
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ import Persefone:
cropname,
cropheight,
cropcover,
cropyield
cropyield,
sow!,
harvest!
struct CropType
name::String
......@@ -50,7 +52,7 @@ Change the cropstate to sow the specified crop.
"""
function sow!(cs::CropState, model::SimulationModel, cropname::String)
cs.croptype = model.crops[cropname]
cs.height = 0cm
cs.height = 0.0cm
end
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment