Skip to content

Commit 15a8126

Browse files
committed
Rev 587
* Output hh data after NYSKIP only * Fix accidental implicit variable use
1 parent b9c121e commit 15a8126

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/main.f

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ program main
5555

5656
use parm
5757
implicit none
58-
prog = "SWAT Jan 28 2013 VER 2012/Rev 585"
58+
prog = "SWAT Feb 12 2013 VER 2012/Rev 587"
5959

6060
write (*,1000)
6161
1000 format(1x," SWAT2012 ",/, &
62-
& " Rev. 585 ",/, &
62+
& " Rev. 587 ",/, &
6363
& " Soil & Water Assessment Tool ",/, &
6464
& " PC Version ",/, &
6565
& " Program reading from file.cio . . . executing",/)

src/print_hyd.f

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ subroutine print_hyd
2525
use parm
2626

2727
!! mauro/jerry whittaker hourly output file
28-
if (iphr > 0) then
28+
if (iphr > 0 .and. curyr > nyskip) then
2929
do ij = 1, nstep
3030
write (83,1000) iyr,i,ij,ihout,hhvaroute(2,ihout,ij)
3131
end do
@@ -34,5 +34,4 @@ subroutine print_hyd
3434
!! end hourly codes
3535

3636
return
37-
end
38-
37+
end

src/readrte.f

+8-8
Original file line numberDiff line numberDiff line change
@@ -260,22 +260,22 @@ subroutine readrte
260260
!! An estimate of channel bank erodibility coefficient from jet test if it is not available
261261
!! Units of kd is (cm^3/N/s)
262262
!! Base on Hanson and Simon, 2001
263-
if (ch_bnk_kd(i) <= 1.e-6) then
264-
if (tc_bnk(i) <= 1.e-6) then
265-
ch_bnk_kd(i) = 0.2
263+
if (ch_bnk_kd(irch) <= 1.e-6) then
264+
if (tc_bnk(irch) <= 1.e-6) then
265+
ch_bnk_kd(irch) = 0.2
266266
else
267-
ch_bnk_kd(i) = 0.2 / sqrt(tc_bnk(i))
267+
ch_bnk_kd(irch) = 0.2 / sqrt(tc_bnk(irch))
268268
end if
269269
end if
270270

271271
!! An estimate of channel bed erodibility coefficient from jet test if it is not available
272272
!! Units of kd is (cm^3/N/s)
273273
!! Base on Hanson and Simon, 2001
274-
if (ch_bed_kd(i) <= 1.e-6) then
275-
if (tc_bed(i) <= 1.e-6) then
276-
ch_bed_kd(i) = 0.2
274+
if (ch_bed_kd(irch) <= 1.e-6) then
275+
if (tc_bed(irch) <= 1.e-6) then
276+
ch_bed_kd(irch) = 0.2
277277
else
278-
ch_bed_kd(i) = 0.2 / sqrt(tc_bed(i))
278+
ch_bed_kd(irch) = 0.2 / sqrt(tc_bed(irch))
279279
end if
280280
end if
281281

0 commit comments

Comments
 (0)