File tree 8 files changed +21
-19
lines changed
8 files changed +21
-19
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ subroutine etact
128
128
!! method is used to calculate surface runoff. The curve number methods
129
129
!! take canopy effects into account in the equations. For either of the
130
130
!! CN methods, canstor will always equal zero.
131
- pet = pet - canstor(j)
131
+ pet = pet - canev
132
132
if (pet < 0 .) then
133
133
canstor(j) = - pet
134
134
canev = pet_day
Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ subroutine harvestop
419
419
if (laiday(j) < alai_min(idplt(j))) then !Sue
420
420
laiday(j) = alai_min(idplt(j))
421
421
end if
422
- if (phuacc(j) < .999) phuacc(j) = phuacc(j) * (1. - ff3)
422
+ phuacc(j) = phuacc(j) * (1. - ff3)
423
423
rwt(j) = .4 - .2 * phuacc(j)
424
424
else
425
425
bio_ms(j) = 0.
Original file line number Diff line number Diff line change @@ -54,11 +54,11 @@ program main
54
54
55
55
use parm
56
56
implicit none
57
- prog = " SWAT Feb 21 2013 VER 2012/Rev 588 "
57
+ prog = " SWAT Apr 12 2013 VER 2012/Rev 591 "
58
58
59
59
write (* ,1000 )
60
60
1000 format (1x ," SWAT2012 " ,/ , &
61
- & " Rev. 588 " ,/ , &
61
+ & " Rev. 591 " ,/ , &
62
62
& " Soil & Water Assessment Tool " ,/ , &
63
63
& " PC Version " ,/ , &
64
64
& " Program reading from file.cio . . . executing" ,/ )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ subroutine newtillmix(jj,bmix)
7
7
!! Mixing was extended to all layers
8
8
!! A subroutine to simulate stimulation of organic matter decomposition was added
9
9
!! March 2009 : testing has been minimal and further adjustments are expected
10
- !! use with caution and report anomalous results to akemanian@brc.tamus.edu and jeff.arnold@ars.usda.edu
10
+ !! use with caution
11
11
12
12
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
13
13
!! name |units |definition
Original file line number Diff line number Diff line change @@ -302,4 +302,4 @@ subroutine pmeas
302
302
5300 format (9x ,a1)
303
303
5400 format (10x ," ERROR: Precipitation data dates do not match for" , &
304
304
& " simulation year: " ,i4," and julian date: " ,i3)
305
- end
305
+ end
Original file line number Diff line number Diff line change @@ -378,13 +378,14 @@ subroutine readsub
378
378
!! endif
379
379
380
380
!! set default values
381
- !! set default values
382
- if (re(ihru) <= 0.) re(ihru) = re_bsn
383
- if (sdrain(ihru) <= 0.) sdrain(ihru) = sdrain_bsn
384
- if (drain_co(ihru) <= 0.) drain_co(ihru) = drain_co_bsn
385
- if (pc(ihru) <= 0.) pc(ihru) = pc_bsn
386
- if (latksatf(ihru) <= 0.) latksatf(ihru) = latksatf_bsn
387
- if (sstmaxd(ihru) <= 0.) sstmaxd(ihru) = sstmaxd_bsn
381
+ do ihru = jj, hrutot(i)
382
+ if (re(ihru) <= 0.) re(ihru) = re_bsn
383
+ if (sdrain(ihru) <= 0.) sdrain(ihru) = sdrain_bsn
384
+ if (drain_co(ihru) <= 0.) drain_co(ihru) = drain_co_bsn
385
+ if (pc(ihru) <= 0.) pc(ihru) = pc_bsn
386
+ if (latksatf(ihru) <= 0.) latksatf(ihru) = latksatf_bsn
387
+ if (sstmaxd(ihru) <= 0.) sstmaxd(ihru) = sstmaxd_bsn
388
+ end do
388
389
! estimate drainage area for urban on-line bmps in square km
389
390
!subdr_km(i) = subdr_km(i) + sub_km(i)
390
391
Original file line number Diff line number Diff line change @@ -155,11 +155,6 @@ subroutine res
155
155
resflwo = res_out(jres,i_mo,curyr)
156
156
!! This will override the measured outflow! This is just a check
157
157
!! should really calibrate inflow or check res volumes
158
- ndespill = ndtargr(nres)
159
- if (ndespill <= 0 .) ndespill = 10 .
160
- if (res_vol(jres) > res_evol(jres)) then
161
- resflwo = resflwo+ (res_vol(jres)- res_evol(jres))/ ndespill
162
- endif
163
158
164
159
case (2 ) !! controlled outflow- target release
165
160
targ = 0 .
@@ -208,6 +203,12 @@ subroutine res
208
203
if (resflwo < oflowmn_fps(jres)) resflwo = oflowmn_fps(jres)
209
204
210
205
end select
206
+
207
+ ndespill = ndtargr(nres)
208
+ if (ndespill <= 0 .) ndespill = 10 .
209
+ if (res_vol(jres) > res_evol(jres)) then
210
+ resflwo = resflwo+ (res_vol(jres)- res_evol(jres))/ ndespill
211
+ endif
211
212
212
213
!! if reservoir volume is zero
213
214
if (res_vol(jres) < 0.001 ) then
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ subroutine writeaa
349
349
aairr = aairr / yrs
350
350
do j = 1 , nhru
351
351
do nicr = 1 , mcrhru(j)
352
- if (ncrops(nicr,j) > 0 ) then
352
+ if (ncrops(nicr,j) > 0 ) then
353
353
yldn(nicr,j) = yldkg(nicr,j) / ncrops(nicr,j)
354
354
bio_aahv(nicr,j) = bio_hv(nicr,j) / ncrops(nicr,j)
355
355
else
You can’t perform that action at this time.
0 commit comments