File tree 3 files changed +32
-1
lines changed
3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,31 @@ Usage:
25
25
26
26
27
27
28
+ --------------------------------------------------------------------------------
29
+ ***** Description of changes from VIC 4.1.2.l to VIC 4.1.2.m *****
30
+ --------------------------------------------------------------------------------
31
+
32
+
33
+ Bug Fixes:
34
+ ----------
35
+
36
+ Fixed negative liquid soil moisture for bare soil conditions
37
+
38
+ Files Affected:
39
+
40
+ runoff.c
41
+
42
+ Description:
43
+
44
+ Previously, runoff() only checked whether total (liquid+ice) soil
45
+ moisture was > residual moisture, but not whether liquid soil moisture
46
+ was positive. In some cases, in the bare soil tile, liquid soil moisture
47
+ could occasionally go negative. This has been fixed by adding a check on
48
+ liquid soil moisture to runoff().
49
+
50
+
51
+
52
+
28
53
--------------------------------------------------------------------------------
29
54
***** Description of changes from VIC 4.1.2.k to VIC 4.1.2.l *****
30
55
--------------------------------------------------------------------------------
Original file line number Diff line number Diff line change 20
20
characteristics of bare soil. TJB
21
21
2012-Jan-16 Removed LINK_DEBUG code BN
22
22
**********************************************************************/
23
- char * version = "4.1.2.l bug fix update 2014-Apr-03 " ;
23
+ char * version = "4.1.2.m bug fix update 2014-May-30 " ;
24
24
25
25
char * optstring = "g:vo" ;
26
26
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ int runoff(cell_data_struct *cell_wet,
166
166
2011-Jun-03 Added options.ORGANIC_FRACT. Soil properties now take
167
167
organic fraction into account. TJB
168
168
2012-Jan-16 Removed LINK_DEBUG code BN
169
+ 2014-May-09 Added check on liquid soil moisture to ensure always >= 0. TJB
169
170
**********************************************************************/
170
171
{
171
172
extern option_struct options ;
@@ -593,6 +594,11 @@ int runoff(cell_data_struct *cell_wet,
593
594
firstlayer = FALSE;
594
595
595
596
/** verify that current layer moisture is greater than minimum **/
597
+ if (liq [lindex ] < 0 ) {
598
+ /** liquid cannot fall below 0 **/
599
+ Q12 [lindex ] += liq [lindex ];
600
+ liq [lindex ] = 0 ;
601
+ }
596
602
if ((liq [lindex ]+ ice [lindex ]) < resid_moist [lindex ]) {
597
603
/** moisture cannot fall below minimum **/
598
604
Q12 [lindex ] += (liq [lindex ]+ ice [lindex ]) - resid_moist [lindex ];
You can’t perform that action at this time.
0 commit comments