Skip to content

Commit

Permalink
Don't manually set sowing_count if idop is <= 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
samsrabin committed Mar 22, 2022
1 parent 504807d commit e8299fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/biogeochem/CNPhenologyMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8299fd

Please sign in to comment.