Skip to content

Commit 6304a28

Browse files
authored
Merge branch 'master' into master
2 parents 4d80f84 + 8105dbd commit 6304a28

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

src/rhizosphere/soil.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
NH4 => 25 ~ preserve(parameter, u"μg/g")
88

99
soil_table => [
10-
63 365 135
11-
96 420 198
12-
181 506 332
10+
0 200 200
11+
71 377 144
12+
93 418 198
13+
184 502 321
1314
] ~ tabulate(
14-
rows=(:S, :SL, :CL),
15+
rows=(:N, :S, :SL, :CL),
1516
columns=(:wilting_point,:saturation,:field_capacity),
1617
parameter
1718
)
1819

1920

21+
22+
2023
end

src/rhizosphere/waterbalance.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ Transpiration
6060
# ((Int(soil_class) > 0) ? (11 - 2 * Int(c)) : (SWpower0))
6161
# end ~ preserve
6262

63+
6364
fc => 0.5 ~ preserve(parameter)
64-
field_capacity(fc, soil_saturation, minSW) => fc * (soil_saturation + minSW) ~ preserve(u"mm")
65+
field_capacity(soil_table,soil_class) => begin
66+
soil_table[Symbol(soil_class)].field_capacity
67+
end ~ preserve(u"mm")
68+
6569

6670

6771
"Proportion of rain intercepted"

0 commit comments

Comments
 (0)