@@ -55,11 +55,9 @@ subroutine allocate_parms
5555
5656!! initialize variables
5757 mvaro = 33
58- mhruo = 78
58+ mhruo = 79
5959 mrcho = 62
60- ! msubo = 18
61- ! changed for jennifer b
62- msubo = 22
60+ msubo = 24
6361 mstdo = 113
6462 motot = 600 !! (50 years limit)
6563
@@ -414,6 +412,7 @@ subroutine allocate_parms
414412 allocate (sub_lat(msub))
415413 allocate (sub_latq(msub))
416414 allocate (sub_tileq(msub))
415+ allocate (sub_vaptile(msub))
417416 allocate (sub_latno3(msub))
418417 allocate (sub_minp(msub))
419418 allocate (sub_minpa(msub))
@@ -1335,6 +1334,8 @@ subroutine allocate_parms
13351334 allocate (wtab_mx(mhru))
13361335 allocate (wet_chla(mhru))
13371336 allocate (wet_fr(mhru))
1337+ allocate (iwetgw(mhru))
1338+ allocate (iwetile(mhru))
13381339 allocate (wet_k(mhru))
13391340 allocate (wet_mxsa(mhru))
13401341 allocate (wet_mxvol(mhru))
@@ -1415,9 +1416,9 @@ subroutine allocate_parms
14151416 allocate (hrupsty(mpst,4 ,mhru))
14161417 allocate (icols(mhruo))
14171418 allocate (ipdvas(mhruo))
1418- allocate (hrumono(73 ,mhru))
1419- allocate (hruyro(73 ,mhru))
1420- allocate (hruaao(73 ,mhru))
1419+ allocate (hrumono(74 ,mhru))
1420+ allocate (hruyro(74 ,mhru))
1421+ allocate (hruaao(74 ,mhru))
14211422 allocate (wtrmon(40 ,mhru))
14221423 allocate (wtryr(40 ,mhru))
14231424 allocate (wtraa(40 ,mhru))
@@ -1658,26 +1659,63 @@ subroutine allocate_parms
16581659 allocate (psp_store(mlyr,mhru))
16591660 allocate (ssp_store(mlyr,mhru))
16601661 allocate (sol_cal(mlyr,mhru))
1661- allocate (sol_ph(mlyr,mhru))
1662+ allocate (sol_ph(mlyr,mhru))
16621663 allocate (harv_min(mhru))
16631664 allocate (fstap(mfdb))
16641665 allocate (min_res(mhru))
16651666 allocate (so_res(20 ,mhru))
16661667 allocate (so_res_flag(20 ,mhru))
1667- allocate (ro_bmp_flag (20 ,mhru))
1668- allocate (ro_bmp_sed(20 ,mhru))
1669- allocate (ro_bmp_pp(20 ,mhru))
1668+ allocate (ro_bmp_flag(20 ,mhru))
1669+ allocate (ro_bmp_flo(20 ,mhru))
1670+ allocate (ro_bmp_sed(20 ,mhru))
1671+ allocate (ro_bmp_pp(20 ,mhru))
16701672 allocate (ro_bmp_sp(20 ,mhru))
16711673 allocate (ro_bmp_pn(20 ,mhru))
16721674 allocate (ro_bmp_sn(20 ,mhru))
16731675 allocate (ro_bmp_bac(20 ,mhru))
1676+
1677+ allocate (ro_bmp_flos(20 ,mhru))
1678+ allocate (ro_bmp_seds(20 ,mhru))
1679+ allocate (ro_bmp_pps(20 ,mhru))
1680+ allocate (ro_bmp_sps(20 ,mhru))
1681+ allocate (ro_bmp_pns(20 ,mhru))
1682+ allocate (ro_bmp_sns(20 ,mhru))
1683+ allocate (ro_bmp_bacs(20 ,mhru))
1684+
1685+ allocate (ro_bmp_flot(20 ,mhru))
1686+ allocate (ro_bmp_sedt(20 ,mhru))
1687+ allocate (ro_bmp_ppt(20 ,mhru))
1688+ allocate (ro_bmp_spt(20 ,mhru))
1689+ allocate (ro_bmp_pnt(20 ,mhru))
1690+ allocate (ro_bmp_snt(20 ,mhru))
1691+ allocate (ro_bmp_bact(20 ,mhru))
1692+
16741693 allocate (bmp_flag(mhru))
1694+
1695+ allocate (bmp_flo(mhru))
16751696 allocate (bmp_sed(mhru))
16761697 allocate (bmp_pp(mhru))
16771698 allocate (bmp_sp(mhru))
16781699 allocate (bmp_pn(mhru))
16791700 allocate (bmp_sn(mhru))
16801701 allocate (bmp_bac(mhru))
1702+
1703+ allocate (bmp_flos(mhru))
1704+ allocate (bmp_seds(mhru))
1705+ allocate (bmp_pps(mhru))
1706+ allocate (bmp_sps(mhru))
1707+ allocate (bmp_pns(mhru))
1708+ allocate (bmp_sns(mhru))
1709+ allocate (bmp_bacs(mhru))
1710+
1711+ allocate (bmp_flot(mhru))
1712+ allocate (bmp_sedt(mhru))
1713+ allocate (bmp_ppt(mhru))
1714+ allocate (bmp_spt(mhru))
1715+ allocate (bmp_pnt(mhru))
1716+ allocate (bmp_snt(mhru))
1717+ allocate (bmp_bact(mhru))
1718+
16811719 !retention irrigation
16821720 allocate(ri_sed(msub,10 ),ri_fr(msub,10 ),ri_dim(msub,10 ),
16831721 & ri_im(msub,10 ),ri_iy(msub,10 ),ri_sa(msub,10 ),ri_vol(msub,10 ),
@@ -1698,8 +1736,55 @@ subroutine allocate_parms
16981736 & wtp_sdc2(mhyd),wtp_sdc3(mhyd),wtp_pdia(mhyd),wtp_plen(mhyd),
16991737 & wtp_pmann(mhyd),wtp_ploss(mhyd),wtp_k(mhyd),
17001738 & wtp_dp(mhyd),wtp_sedi(mhyd),wtp_sede(mhyd),wtp_qi(mhyd))
1701-
17021739
1740+ !! LID simulations
1741+ !! Common variable
1742+ !! van Genuchten equation' s coefficients
1743+ allocate(lid_vgcl,lid_vgcm,lid_qsurf_total,
1744+ & lid_farea_sum)
1745+ allocate(lid_cuminf_last(mhru,4),lid_sw_last(mhru,4),
1746+ & interval_last(mhru,4),lid_f_last(mhru,4),lid_cumr_last(mhru,4),
1747+ & lid_str_last(mhru,4),lid_farea(mhru,4),lid_qsurf(mhru,4),
1748+ & lid_sw_add(mhru,4),lid_cumqperc_last(mhru,4),
1749+ & lid_cumirr_last(mhru,4),lid_excum_last(mhru,4)) !! nbs
1750+
1751+ !! Green Roof
1752+ allocate(gr_onoff(msub,mudb),gr_imo(msub,mudb),gr_iyr(msub,mudb),
1753+ & gr_farea(msub,mudb),gr_solop(msub,mudb),gr_etcoef(msub,mudb),
1754+ & gr_fc(msub,mudb),gr_wp(msub,mudb),gr_ksat(msub,mudb),
1755+ & gr_por(msub,mudb),gr_hydeff(msub,mudb),gr_soldpt(msub,mudb),
1756+ & gr_dummy1(msub,mudb),gr_dummy2(msub,mudb),gr_dummy3(msub,mudb),
1757+ & gr_dummy4(msub,mudb),gr_dummy5(msub,mudb))
1758+
1759+ !! Rain Garden
1760+ allocate(rg_onoff(msub,mudb),rg_imo(msub,mudb),rg_iyr(msub,mudb),
1761+ & rg_farea(msub,mudb),rg_solop(msub,mudb),rg_etcoef(msub,mudb),
1762+ & rg_fc(msub,mudb),rg_wp(msub,mudb),rg_ksat(msub,mudb),
1763+ & rg_por(msub,mudb),rg_hydeff(msub,mudb),rg_soldpt(msub,mudb),
1764+ & rg_dimop(msub,mudb),rg_sarea(msub,mudb),rg_vol(msub,mudb),
1765+ & rg_sth(msub,mudb),rg_sdia(msub,mudb),rg_bdia(msub,mudb),
1766+ & rg_sts(msub,mudb),rg_orifice(msub,mudb),rg_oheight(msub,mudb),
1767+ & rg_odia(msub,mudb),rg_dummy1(msub,mudb),rg_dummy2(msub,mudb),
1768+ & rg_dummy3(msub,mudb),rg_dummy4(msub,mudb),rg_dummy5(msub,mudb))
1769+
1770+ !! CiStern
1771+ allocate(cs_onoff(msub,mudb),cs_imo(msub,mudb),cs_iyr(msub,mudb),
1772+ & cs_grcon(msub,mudb),cs_farea(msub,mudb),cs_vol(msub,mudb),
1773+ & cs_rdepth(msub,mudb),cs_dummy1(msub,mudb),cs_dummy2(msub,mudb),
1774+ & cs_dummy3(msub,mudb),cs_dummy4(msub,mudb),cs_dummy5(msub,mudb))
1775+
1776+ !! Poropus paVement
1777+ allocate(pv_onoff(msub,mudb),pv_imo(msub,mudb),pv_iyr(msub,mudb),
1778+ & pv_grvdep(msub,mudb),pv_grvpor(msub,mudb),pv_farea(msub,mudb),
1779+ & pv_solop(msub,mudb),pv_drcoef(msub,mudb),pv_fc(msub,mudb),
1780+ & pv_wp(msub,mudb),pv_ksat(msub,mudb),pv_por(msub,mudb),
1781+ & pv_hydeff(msub,mudb),pv_soldpt(msub,mudb),pv_dummy1(msub,mudb),
1782+ & pv_dummy2(msub,mudb),pv_dummy3(msub,mudb),pv_dummy4(msub,mudb),
1783+ & pv_dummy5(msub,mudb))
1784+
1785+ !! LID general
1786+ allocate(lid_onoff(msub,mudb))
1787+
17031788 !! By Zhang for C/N cycling
17041789 !! ============================
17051790 !allocate(sol_PH(mlyr,mhru))
0 commit comments