56 INTEGER,
INTENT(in) :: nspc
59 INTEGER :: latIni, lonIni, &
87 byltcls1:
do ltcl = 1,
maxlc
92 byspcs1:
do isp = 1, nspc
95 latloop1:
do latini = 1,
maxlat
96 lonloop1:
do lonini = 1,
maxlon
98 byhtcls11:
do htcl = 0,
maxhc
99 stategrid(latini, lonini)%sp(isp)%numin(htcl) = 0.0
102 stategrid(latini, lonini)%sp(isp)%antagonist = 10.0
103 stategrid(latini, lonini)%sp(isp)%seedBank = 0.0
104 seedrain(latini, lonini)%sp(isp)%newSeeds = 0.0
111 byhtcls1:
do htcl = 1,
spec(isp)%maxhtc
114 speccl(isp)%htmin(htcl) = truht
116 nextdm= dbhfromheight(nexht,
birht,
spec(isp)%khmax,
spec(isp)%maxdhm)
117 speccl(isp)%diain(htcl) = diamt
118 speccl(isp)%lain(htcl) = lafromdbh(diamt,
spec(isp)%tb,
spec(isp)%stn)
119 if (nextdm > diamt)
then
120 bio = biomassfromdbh(diamt,
spec(isp)%tb,
spec(isp)%stn )
128 bio = biomassfromdbh(diamt,
spec(isp)%tb,
spec(isp)%stn)
130 bio = biomassfromdbh(nextdm,
spec(isp)%tb,
spec(isp)%stn)
136 speccl(isp)%htmin(0) = 0.0
137 speccl(isp)%diain(0) = 0.0
141 latloop2:
do latini = 1,
maxlat
142 lonloop2:
do lonini = 1,
maxlon
143 stategrid(latini, lonini)%sp(isp)%numin(0) = 0.0
148 byhtcls3:
do htcl = 0,
spec(isp)%maxhtc
149 if (
speccl(isp)%htmin(htcl) >=
spec(isp)%minmat)
then
153 speccl(isp)%seedprod(htcl) = 0
159 resthtcls2:
do htcl =
spec(isp)%maxhtc + 1,
maxhc
162 speccl(isp)%lain(htcl) = 0.0
163 speccl(isp)%bioin(htcl) = 0.0
164 speccl(isp)%seedprod(htcl) = 0
166 latloop3:
do latini = 1,
maxlat
167 lonloop3:
do lonini = 1,
maxlon
168 stategrid(latini, lonini)%sp(isp)%numin(htcl) = 0.0
180 byhtcls4:
do htcl = 0,
maxhc
182 (
speccl(isp)%bioin(htcl), tab, isp=1, nspc) , 0.
184 (
speccl(isp)%lain(htcl), tab, isp=1, nspc) , 0.
186 (
speccl(isp)%diain(htcl), tab, isp=1, nspc) , 0.
188 (
speccl(isp)%seedprod(htcl), tab, isp=1, nspc) , 0.
190 (
speccl(isp)%htmin(htcl), tab, isp=1, nspc) , 0.
193 write (
lightandleafareaperlightclass%unit,102) 0,tab, 0,tab,0,tab,0, tab, (
ltval(ltcl),tab, ltcl=1,
maxlc)
194 write (
lightandleafareaperlightclass%unit,102) 0,tab, 0,tab,0,tab,0, tab, (
la(ltcl),tab, ltcl=1,
maxlc)
198 101
FORMAT(3(i1,
a1), 60(e13.7,
a1))
199 102
FORMAT(4(i1,
a1), 20(e11.5,
a1))