Skip to content

V73: rooting depth bug fix#369

Open
mbechtold wants to merge 3 commits intoKUL-RSDA:mainfrom
mbechtold:rooting_depth_bugfix
Open

V73: rooting depth bug fix#369
mbechtold wants to merge 3 commits intoKUL-RSDA:mainfrom
mbechtold:rooting_depth_bugfix

Conversation

@mbechtold
Copy link
Collaborator

@mbechtold mbechtold commented Jan 12, 2026

This PR fixes a bug that appears sporadically in space and time in GDD mode when rooting depth drops to zero right before harvest.
The bug originates from a mismatch for the end of season checks in calendar days and GDDays in section 7 of run.f90
It occurs for some pixels and years that SumGDD is still smaller than GDDaysToHarvest while (DayNri-Simulation.DelayedDays) is already larger than Crop.DayN.
This leads to entering the else of the inner if statement which sets rooting depth to zero.
In GDD mode, it only affects the last day before harvest when rooting depth drops to zero and then jumps back again to the original depth it had before the drop.

@mbechtold mbechtold changed the title rooting depth bug fix BUG: rooting depth bug Jan 12, 2026
@mbechtold mbechtold changed the title BUG: rooting depth bug V73: rooting depth bug fix Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants