diff --git a/src/crop/almass.jl b/src/crop/almass.jl index c41353b077371b0c496df65ecdfca2d9e1526f1e..894c9e4255b0c789bf2ef6bdf737597e52477a78 100644 --- a/src/crop/almass.jl +++ b/src/crop/almass.jl @@ -804,17 +804,13 @@ supply_global_radiation(model::SimulationModel) = Change the cropstate to sow the specified crop. """ -function sow!(cs::CropState, model::SimulationModel, cropname::String; - highnutrients::Bool=false) +function sow!(cs::CropState, model::SimulationModel, cropname::String) !ismissing(cs.croptype.minsowdate) && model.date < cs.croptype.minsowdate && @warn "$(model.date) is earlier than the minimum sowing date for $(cropname)." - empty!(cs.events) - if highnutrients - push!(cs.events, fertiliser) - end cs.croptype = model.crops[cropname] setphase!(cs, sow, model) cs.mature = false + empty!(cs.events) # cs.vegddegs = 0.0 # cs.ddegs = 0.0 diff --git a/src/crop/farmplot.jl b/src/crop/farmplot.jl index d11b2ff2e635e68d5fd9e5b45ea7362217aa62a5..c44d6ad85d2c56f37784ae7df9c9cab89f3d361d 100644 --- a/src/crop/farmplot.jl +++ b/src/crop/farmplot.jl @@ -36,9 +36,9 @@ end Sow the specified crop on the farmplot. """ -function sow!(farmplot::FarmPlot, model::SimulationModel, cropname::String; kwargs...) +function sow!(farmplot::FarmPlot, model::SimulationModel, cropname::String) createevent!(model, farmplot.pixels, sowing) - sow!(farmplot.cropstate, model, cropname; kwargs...) + sow!(farmplot.cropstate, model, cropname) @debug "Farmer $(farmplot.farmer) sowed $(cropname) on farmplot $(farmplot.id)." end