Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/run.f90
Original file line number Diff line number Diff line change
Expand Up @@ -6977,7 +6977,13 @@ subroutine AdvanceOneTimeStep(WPi, HarvestNow)
end if
end if
else
call SetRootingDepth(0._dp)
! In GDD mode, SumGDD needs to be higher than GDDaysToHarvest to prevent reset to zero before harvest
if ((GetCrop_ModeCycle() == modeCycle_GDDays) .and. &
(GetSimulation_SumGDD() <= 0.0)) then
call SetRootingDepth(0._dp)
else
call SetRootingDepth(GetZiprev())
end if
end if
else
call SetRootingDepth(GetZiprev())
Expand Down