CH-Earth / summa

Structure for Unifying Multiple Modeling Alternatives:
http://www.ral.ucar.edu/projects/summa
GNU General Public License v3.0
80 stars 105 forks source link

Bug fix in solar calculation for days that have no sunrise/sunset #390

Closed wknoben closed 4 years ago

wknoben commented 4 years ago

sunGeomtry.f90 runs into issues in high and low latitude locations, when sunrise/sunset do not occur on a given day. These changes prevent the calculation of TD to terminate in such cases.

If the sun never set on the previous day, the calculations now assume it rises at 0.00am on the current day. If the sun never rises during the day, it is now assumed to rise at 12.00pm.