erf-model / ERF

Energy Research and Forecasting Model
https://erf.readthedocs.io/en/latest/
Other
26 stars 40 forks source link

SAM coeff bounding #1943

Closed AMLattanzi closed 1 week ago

AMLattanzi commented 1 week ago

This PR prevents a divide by 0 case with the SAM microphysics. Namely, the coefficients of evaporation for snow/graupel depend upon the vapor pressure of ice (erf_esati). When T>273.16, the ice melts and thus its vapor pressure is 0. To alleviate this issue, we limit the temperature in the SAM initialization so that esati is computed at T=273.16 if T>273.16. This keeps the coefficients bounded and should not affect evaporation rates since that process requires finite q_{s/g} and that condition requires T<273.16.