Skip to content

Commit 3244bd8

Browse files
author
Joe Hamman
committed
add missing conditions to solve snow if only glacier present
1 parent 4a63574 commit 3244bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/solve_snow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ double solve_snow(char overstory,
215215
(*ShortUnderIn) = shortwave;
216216
(*LongUnderIn) = longwave;
217217

218-
if ( snow->swq > 0 || *snowfall > 0.
218+
if ( snow->swq > 0. || snow->iwq > 0. || *snowfall > 0.
219219
|| (snow->snow_canopy > 0. && overstory) ) {
220220

221221
/*****************************
@@ -307,7 +307,7 @@ double solve_snow(char overstory,
307307
energy->LongOverIn = 0;
308308
}
309309

310-
if ( snow->swq > 0.0 || *snowfall > 0 ) {
310+
if ( snow->swq > 0.0 || *snowfall > 0 || snow->iwq > 0.0) {
311311

312312
/******************************
313313
Snow Pack Present on Ground

0 commit comments

Comments
 (0)