Skip to content

Commit aed34ad

Browse files
committed
Merge tag 'rev528_vanilla'
2 parents 1c0d405 + 5cd4c8a commit aed34ad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2277
-975
lines changed

src/addh.f

+5-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ subroutine addh
8888
end do
8989
end do
9090
endif
91-
91+
92+
do ii = 29, mvaro
93+
varoute(ii,inum1) = 0.
94+
varoute(ii,inum2) = 0.
95+
end do
9296

9397
return
9498
end

src/allocate_parms.f

+38-19
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@ subroutine allocate_parms
5858
msubo = 22
5959
mstdo = 112
6060
iopera = 200
61+
motot = 600 !! (50 years limit)
6162

6263
!!!!!!!!!! drains
63-
!! allocate (w(mlyr))
64+
allocate (wnan(mlyr))
6465

65-
!! allocate (rcn(12,msub))
66+
!! allocate (rcn(12,msub))
6667

6768
!! arrays for Landscape Transport Capacity
6869
allocate (l_k1(msub))
@@ -75,6 +76,14 @@ subroutine allocate_parms
7576
allocate (l_vslope(msub))
7677
allocate (l_ktc(msub))
7778

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+
7887
mxsubch = Max(msub+1,mch+1)
7988
itempa = Max(mhru,mch)
8089

@@ -334,6 +343,14 @@ subroutine allocate_parms
334343
allocate (daylmn(msub))
335344
allocate (drydep_no3(msub))
336345
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+
337354
allocate (fcst_reg(msub))
338355
allocate (harg_petco(msub))
339356
! allocate (hqd(nstep*3+1)) !! was 73, changed for urban
@@ -778,7 +795,8 @@ subroutine allocate_parms
778795
allocate (orig_phu(mhru))
779796

780797
allocate (phu_plt(mhru))
781-
798+
allocate (nstress(mhru))
799+
allocate (igrotree(mhru))
782800
allocate (tnyld(mhru))
783801
allocate (tnylda(mhru))
784802
allocate (yldkg(mcr,mhru))
@@ -823,6 +841,7 @@ subroutine allocate_parms
823841

824842
allocate (shyd(8,mhyd))
825843
allocate (varoute(mvaro,mhyd))
844+
allocate (vartran(mvaro,mhyd))
826845
allocate (hhvaroute(mvaro,mhyd,nstep)) !! from 24 to nstep for urban
827846
!! allocate (hhvaroute(mvaro,mhyd,24)) !! from 24 to nstep for urban
828847

@@ -1005,7 +1024,7 @@ subroutine allocate_parms
10051024
allocate (ipdhru(imho))
10061025
allocate (ipnd1(mhru))
10071026
allocate (ipnd2(mhru))
1008-
allocate (ipot(mhru))
1027+
!! allocate (ipot(mhru))
10091028
allocate (irip(mhru))
10101029
allocate (irn(mhru))
10111030
allocate (irrno(mhru))
@@ -1525,7 +1544,7 @@ subroutine allocate_parms
15251544

15261545
!! Arrays for subdaily erosion modeling by Jaehak Jeong
15271546
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))
15291548
allocate (dratio(msub),init_abstrc(mhru))
15301549
allocate (sub_subp_dt(msub,nstep),sub_hhsedy(msub,nstep))
15311550
allocate (sub_atmp(msub,nstep))
@@ -1544,9 +1563,9 @@ subroutine allocate_parms
15441563
& sp_qi(msub,10),sp_k(msub,10),sp_bpw(msub,10),
15451564
& ft_bpw(msub,10),sp_dp(msub,10),ft_sed_cumul(msub,10),
15461565
& 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),
15481567
& 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))
15501569
!! additional var by Ann
15511570
!! Filter Strip variable allocation MJW
15521571
allocate (vfscon(mhru))
@@ -1559,9 +1578,9 @@ subroutine allocate_parms
15591578
allocate (filter_ch(20,mhru))
15601579

15611580
! 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))
15651584

15661585
allocate(dtp_evrsv(msub),
15671586
& dtp_inflvol(msub),dtp_totwrwid(msub),dtp_parm(msub),
@@ -1616,19 +1635,19 @@ subroutine allocate_parms
16161635
& ri_dep(msub,10),ri_ndt(msub,10),ri_nirr(msub,30),
16171636
& num_noirr(msub),ri_totpvol(nstep),ri_luflg(mhru),
16181637
& ri_subkm(msub),ri_sed_cumul(msub,10),irmmdt(nstep),
1619-
& ri_pumpv(msub,10))
1638+
& ri_pumpv(msub,10),ri_sedi(msub,10))
16201639
allocate(num_ri(msub), ri_pmpvol(10,nstep),hrnopcp(msub,0:nstep),
16211640
& ri_qloss(10,nstep))
16221641

16231642
!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))
16321651

16331652

16341653
call zero0

src/anfert.f

+1-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ subroutine anfert
167167

168168
use parm
169169

170-
integer, parameter :: nstress = 1
171170
real, parameter :: rtoaf = 0.50
172171
integer :: j, ly, ifrt
173172
real :: tsno3, tpno3, dwfert, xx, targn, tfp
@@ -181,7 +180,7 @@ subroutine anfert
181180
!! determine amount of mineral N to be applied
182181
if (strsn(j) < auto_nstrs(j)) then
183182
targn = 0.
184-
if (nstress == 0) then !! n target approach
183+
if (nstress(j) == 0) then !! n target approach
185184
tsno3 = 0.
186185
tpno3 = 0.
187186
do ly = 1, sol_nly(j)

0 commit comments

Comments
 (0)