@@ -58,11 +58,12 @@ subroutine allocate_parms
58
58
msubo = 22
59
59
mstdo = 112
60
60
iopera = 200
61
+ motot = 600 !! (50 years limit)
61
62
62
63
!!!!!!!!!! drains
63
- !! allocate (w (mlyr))
64
+ allocate (wnan (mlyr))
64
65
65
- !! allocate (rcn(12 ,msub))
66
+ !! allocate (rcn(12 ,msub))
66
67
67
68
!! arrays for Landscape Transport Capacity
68
69
allocate (l_k1(msub))
@@ -75,6 +76,14 @@ subroutine allocate_parms
75
76
allocate (l_vslope(msub))
76
77
allocate (l_ktc(msub))
77
78
79
+ !! arrays for Biofilm in reach
80
+ allocate (biofilm_mumax(mch))
81
+ allocate (biofilm_kinv(mch))
82
+ allocate (biofilm_klw(mch))
83
+ allocate (biofilm_kla(mch))
84
+ allocate (biofilm_cdet(mch))
85
+ allocate (biofilm_bm(mch))
86
+
78
87
mxsubch = Max (msub+1 ,mch+1 )
79
88
itempa = Max (mhru,mch)
80
89
@@ -334,6 +343,14 @@ subroutine allocate_parms
334
343
allocate (daylmn(msub))
335
344
allocate (drydep_no3(msub))
336
345
allocate (drydep_nh4(msub))
346
+
347
+ !!! atmospheric deposition by month
348
+ allocate (rcn_mo(motot,msub))
349
+ allocate (rammo_mo(motot,msub))
350
+ allocate (drydep_no3_mo(motot,msub))
351
+ allocate (drydep_nh4_mo(motot,msub))
352
+ !!! atmospheric deposition by month
353
+
337
354
allocate (fcst_reg(msub))
338
355
allocate (harg_petco(msub))
339
356
! allocate (hqd(nstep* 3+1 )) !! was 73 , changed for urban
@@ -778,7 +795,8 @@ subroutine allocate_parms
778
795
allocate (orig_phu(mhru))
779
796
780
797
allocate (phu_plt(mhru))
781
-
798
+ allocate (nstress(mhru))
799
+ allocate (igrotree(mhru))
782
800
allocate (tnyld(mhru))
783
801
allocate (tnylda(mhru))
784
802
allocate (yldkg(mcr,mhru))
@@ -823,6 +841,7 @@ subroutine allocate_parms
823
841
824
842
allocate (shyd(8 ,mhyd))
825
843
allocate (varoute(mvaro,mhyd))
844
+ allocate (vartran(mvaro,mhyd))
826
845
allocate (hhvaroute(mvaro,mhyd,nstep)) !! from 24 to nstep for urban
827
846
!! allocate (hhvaroute(mvaro,mhyd,24 )) !! from 24 to nstep for urban
828
847
@@ -1005,7 +1024,7 @@ subroutine allocate_parms
1005
1024
allocate (ipdhru(imho))
1006
1025
allocate (ipnd1(mhru))
1007
1026
allocate (ipnd2(mhru))
1008
- allocate (ipot(mhru))
1027
+ !! allocate (ipot(mhru))
1009
1028
allocate (irip(mhru))
1010
1029
allocate (irn(mhru))
1011
1030
allocate (irrno(mhru))
@@ -1525,7 +1544,7 @@ subroutine allocate_parms
1525
1544
1526
1545
!! Arrays for subdaily erosion modeling by Jaehak Jeong
1527
1546
allocate (hhsedy(mhru,nstep),rhy(nstep),ovrlnd_dt(mhru,nstep))
1528
- allocate (snam(mhru),hydgrp(mhru),kirr(mhru))
1547
+ allocate (snam(mhru),hydgrp(mhru),kirr(mhru))
1529
1548
allocate (dratio(msub),init_abstrc(mhru))
1530
1549
allocate (sub_subp_dt(msub,nstep),sub_hhsedy(msub,nstep))
1531
1550
allocate (sub_atmp(msub,nstep))
@@ -1544,9 +1563,9 @@ subroutine allocate_parms
1544
1563
& sp_qi(msub,10 ),sp_k(msub,10 ),sp_bpw(msub,10 ),
1545
1564
& ft_bpw(msub,10 ),sp_dp(msub,10 ),ft_sed_cumul(msub,10 ),
1546
1565
& sp_sed_cumul(msub,10 ),ft_qfg(msub,10 ),sp_qfg(msub,10 ))
1547
- allocate (sub_ha_urb (msub),ft_qpnd(msub,10 ),ft_qsw(msub,10 ),
1566
+ allocate (sub_ha_imp (msub),ft_qpnd(msub,10 ),ft_qsw(msub,10 ),
1548
1567
& ft_qin(msub,10 ),ft_qout(msub,10 ),ft_sedpnd(msub,10 ),
1549
- & sf_ptp(msub,10 ),ft_fc(msub,10 ))
1568
+ & sf_ptp(msub,10 ),ft_fc(msub,10 ),sub_ha_urb(msub) )
1550
1569
!! additional var by Ann
1551
1570
!! Filter Strip variable allocation MJW
1552
1571
allocate (vfscon(mhru))
@@ -1559,9 +1578,9 @@ subroutine allocate_parms
1559
1578
allocate (filter_ch(20 ,mhru))
1560
1579
1561
1580
! detention pond
1562
- allocate(dtp_subnum(msub ),dtp_imo(msub ),dtp_iyr(msub ),
1563
- & dtp_numweir(msub ),dtp_numstage(msub ),
1564
- & dtp_stagdis(msub ),dtp_reltype(msub ),dtp_onoff(msub ))
1581
+ allocate(dtp_subnum(mhyd ),dtp_imo(mhyd ),dtp_iyr(mhyd ),
1582
+ & dtp_numweir(mhyd ),dtp_numstage(mhyd ),
1583
+ & dtp_stagdis(mhyd ),dtp_reltype(mhyd ),dtp_onoff(mhyd ))
1565
1584
1566
1585
allocate(dtp_evrsv(msub),
1567
1586
& dtp_inflvol(msub),dtp_totwrwid(msub),dtp_parm(msub),
@@ -1616,19 +1635,19 @@ subroutine allocate_parms
1616
1635
& ri_dep(msub,10 ),ri_ndt(msub,10 ),ri_nirr(msub,30 ),
1617
1636
& num_noirr(msub),ri_totpvol(nstep),ri_luflg(mhru),
1618
1637
& ri_subkm(msub),ri_sed_cumul(msub,10 ),irmmdt(nstep),
1619
- & ri_pumpv(msub,10 ))
1638
+ & ri_pumpv(msub,10 ),ri_sedi(msub, 10 ) )
1620
1639
allocate(num_ri(msub), ri_pmpvol(10 ,nstep),hrnopcp(msub,0 :nstep),
1621
1640
& ri_qloss(10 ,nstep))
1622
1641
1623
1642
!wet pond
1624
- allocate(wtp_subnum(msub ),wtp_onoff(msub ),wtp_imo(msub ),
1625
- & wtp_iyr(msub ),wtp_dim(msub ),wtp_stagdis(msub ),wtp_sdtype(msub ),
1626
- & wtp_pvol(msub ),wtp_pdepth(msub ),wtp_sdslope(msub ),
1627
- & wtp_lenwdth(msub ),wtp_extdepth(msub ),wtp_hydeff(msub ),
1628
- & wtp_evrsv(msub ),wtp_sdintc(msub ),wtp_sdexp(msub ),wtp_sdc1(msub ),
1629
- & wtp_sdc2(msub ),wtp_sdc3(msub ),wtp_pdia(msub ),wtp_plen(msub ),
1630
- & wtp_pmann(msub ),wtp_ploss(msub ),wtp_k(msub ),
1631
- & wtp_dp(msub ),wtp_sedi(msub ),wtp_sede(msub ),wtp_qi(msub ))
1643
+ allocate(wtp_subnum(mhyd ),wtp_onoff(mhyd ),wtp_imo(mhyd ),
1644
+ & wtp_iyr(mhyd ),wtp_dim(mhyd ),wtp_stagdis(mhyd ),wtp_sdtype(mhyd ),
1645
+ & wtp_pvol(mhyd ),wtp_pdepth(mhyd ),wtp_sdslope(mhyd ),
1646
+ & wtp_lenwdth(mhyd ),wtp_extdepth(mhyd ),wtp_hydeff(mhyd ),
1647
+ & wtp_evrsv(mhyd ),wtp_sdintc(mhyd ),wtp_sdexp(mhyd ),wtp_sdc1(mhyd ),
1648
+ & wtp_sdc2(mhyd ),wtp_sdc3(mhyd ),wtp_pdia(mhyd ),wtp_plen(mhyd ),
1649
+ & wtp_pmann(mhyd ),wtp_ploss(mhyd ),wtp_k(mhyd ),
1650
+ & wtp_dp(mhyd ),wtp_sedi(mhyd ),wtp_sede(mhyd ),wtp_qi(mhyd ))
1632
1651
1633
1652
1634
1653
call zero0
0 commit comments