We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c8e30e commit b214165Copy full SHA for b214165
src/Evaporation.cpp
@@ -267,7 +267,7 @@ double Hamon1961Evap(const force_struct *F)
267
268
abs_hum=216.7*(sat_vap*MB_PER_KPA)/(F->temp_daily_ave+ZERO_CELSIUS);//abs. humidity, g/m3 (may wish to make separate function of T)s
269
270
- return 0.0055*4.0*abs_hum*F->day_length*F->day_length*MM_PER_INCH;
+ return max(0.0,0.0055*4.0*abs_hum*F->day_length*F->day_length*MM_PER_INCH);
271
}
272
273
//////////////////////////////////////////////////////////////////
0 commit comments