50SUBROUTINE seedprod(ispec, htcl, ntinh, year, thiscell)
59 INTEGER,
INTENT(in) :: ispec, year, &
61 REAL,
INTENT(in) :: ntinh
64 REAL :: maxSeedsPerTree, &
71 maxseedspertree =
spec(ispec)%maxseed
73 if (
mastseeding) maxseedspertree = 0.5*maxseedspertree* &
74 (1.0 + sin(6.2831853*
real(year)/
spec(ispec)%period))
76 newseeds = ntinh*
speccl(ispec)%seedprod(htcl)*maxseedspertree
78 if (htcl .ge. ceiling(
spec(ispec)%mathcp)) &
79 thiscell%sp(ispec)%seeds(htcl) = thiscell%sp(ispec)%seeds(htcl) + newseeds
82 if (htcl == floor(
spec(ispec)%mathcp)) &
83 thiscell%sp(ispec)%seeds(htcl) = thiscell%sp(ispec)%seeds(htcl) + newseeds*fractioninlowhc