diff --git a/src/crop/simplecrop.jl b/src/crop/simplecrop.jl index a8aac2d58adf09bcfaf83f96aa4e2e272dd4b14d..308434d7490b87467b94ea5c58ab316feaaccbe6 100644 --- a/src/crop/simplecrop.jl +++ b/src/crop/simplecrop.jl @@ -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 """