From e8299fddea6f537458f975f9876314358ca7c232 Mon Sep 17 00:00:00 2001 From: Sam Rabin Date: Tue, 22 Mar 2022 15:20:55 -0600 Subject: [PATCH] Don't manually set sowing_count if idop is <= 0. --- src/biogeochem/CNPhenologyMod.F90 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/biogeochem/CNPhenologyMod.F90 b/src/biogeochem/CNPhenologyMod.F90 index c5fe161597..10d5f9d3ba 100644 --- a/src/biogeochem/CNPhenologyMod.F90 +++ b/src/biogeochem/CNPhenologyMod.F90 @@ -1982,7 +1982,7 @@ subroutine CropPhenology(num_pcropp, filter_pcropp , & ! old code *did* replant in first calendar year after restart). idop_in_swindow = idop(p) >= minplantjday(ivt(p),h) .and. idop(p) <= maxplantjday(ivt(p),h) idop_dayafter_swindow = (idop(p) == maxplantjday(ivt(p),h) + 1) .or. ((maxplantjday(ivt(p),h)==365) .and. (idop(p)==1)) - if (croplive(p) .and. idop(p) <= jday .and. sowing_count(p) == 0 & + if (croplive(p) .and. idop(p) <= jday .and. idop(p) > 0 .and. sowing_count(p) == 0 & ! REPRODUCTION_TEST(ssr, 2022-02-25) .and. (idop_in_swindow .or. (.not. idop_dayafter_swindow))) then if (verbose) then