-
Notifications
You must be signed in to change notification settings - Fork 3
/
enrsb.f
75 lines (62 loc) · 2.54 KB
/
enrsb.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
subroutine enrsb(iwave)
!! ~ ~ ~ PURPOSE ~ ~ ~
!! this subroutine calculates the enrichment ratio for nutrient and
!! pesticide transport with runoff
!! ~ ~ ~ INCOMING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! da_ha |ha |area of watershed in hectares
!! ihru |none |HRU number
!! iwave |none |flag to differentiate calculation of HRU and
!! |subbasin sediment calculation
!! |iwave = 0 for HRU
!! |iwave = subbasin # for subbasin
!! sedyld(:) |metric tons |daily soil loss caused by water erosion in HRU
!! sub_fr(:) |none |fraction of watershed area in subbasin
!! sub_surfq(:)|nn H2O |surface runoff generated on day in subbasin
!! surfq(:) |mm H2O |surface runoff generated on day in HRU
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ OUTGOING VARIABLES ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! enratio |none |enrichment ratio
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ LOCAL DEFINITIONS ~ ~ ~
!! name |units |definition
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! cy |
!! j |none |HRU number
!! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
!! ~ ~ ~ ~ ~ ~ END SPECIFICATIONS ~ ~ ~ ~ ~ ~
use parm
integer, intent (in) :: iwave
integer :: j
real :: cy
j = 0
j = ihru
if (sedyld(j) < 1.e-4) then
sedyld(j) = 0.0
sanyld(j) = 0.0
silyld(j) = 0.0
clayld(j) = 0.0
sagyld(j) = 0.0
lagyld(j) = 0.0
endif
!! CREAMS method for calculating enrichment ratio
cy = 0.
if (iwave > 0) then
!! subbasin sediment calculations
cy = .1 * sedyld(j) / (da_ha * sub_fr(iwave) * sub_surfq(iwave)
& + 1.e-6)
else
!! HRU sediment calculations
cy = .1 * sedyld(j) / (hru_ha(j) * surfq(j) + 1.e-6)
end if
if (cy > 1.e-6) then
enratio = .78 * cy ** (-.2468)
else
enratio = 0.
endif
if (enratio > 3.5) enratio = 3.5
return
end