Skip to content

Commit

Permalink
Don't use gddmin as minimum GDD requirement when not using prescribed…
Browse files Browse the repository at this point in the history
… GDDs.
  • Loading branch information
samsrabin committed Nov 9, 2022
1 parent 1b14d9c commit d5bda14
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/biogeochem/CNPhenologyMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2610,15 +2610,7 @@ subroutine PlantCrop(p, leafcn_in, jday, kyr, do_plant_normal, &
gddmaturity(p) = min(gdd020(p), hybgdd(ivt(p)))
end if

! gddmaturity == 0.0 will cause problems elsewhere, where it appears in denominator
! Just manually set a minimum of 1.0
if (gddmaturity(p) < gddmin(ivt(p))) then
write(iulog,*) 'Some patch with ivt ',ivt(p),' has calculated gddmaturity ',gddmaturity(p),&
'; using gddmin(ivt(p)) instead (',gddmin(ivt(p)),')'
endif
gddmaturity(p) = max(gddmaturity(p), gddmin(ivt(p)))
endif
! write (iulog,'(a,i4,a,f0.0)') 'gddmaturity (ivt ',ivt(p),'): ',gddmaturity(p)

end associate

Expand Down

0 comments on commit d5bda14

Please sign in to comment.