From 402a3193ec0b80bf82ada7ac94e8584d009a206e Mon Sep 17 00:00:00 2001 From: Marco Matthies <71844+marcom@users.noreply.github.com> Date: Mon, 15 Jul 2024 08:26:30 +0200 Subject: [PATCH] Some missing ALMaSS submodule prefixes --- src/crop/farmplot.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crop/farmplot.jl b/src/crop/farmplot.jl index 5d95d2f..46a563d 100644 --- a/src/crop/farmplot.jl +++ b/src/crop/farmplot.jl @@ -92,7 +92,7 @@ Sow the specified crop on this farmplot. function sow!(cropname::String, farmplot::FarmPlot, model::SimulationModel) createevent!(model, farmplot.pixels, sowing) farmplot.croptype = model.crops[cropname] - farmplot.phase = sow + farmplot.phase = ALMaSS.sow #XXX test if the crop is sowable? end @@ -103,9 +103,9 @@ Harvest the crop on this farmplot. """ function harvest!(farmplot::FarmPlot, model::SimulationModel) createevent!(model, farmplot.pixels, harvesting) - farmplot.phase in [harvest1, harvest2] ? - farmplot.phase = harvest2 : - farmplot.phase = harvest1 + farmplot.phase in [ALMaSS.harvest1, ALMaSS.harvest2] ? + farmplot.phase = ALMaSS.harvest2 : + farmplot.phase = ALMaSS.harvest1 # height & LAI will be automatically adjusted by the growth function #TODO calculate and return yield end -- GitLab