CH-Earth / summa

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

Consider adding an HRU area > 0 check before run commences #510

Open wknoben opened 2 years ago

wknoben commented 2 years ago

If HRU area is zero, groundwatr.f90 will crash out when computing totalColumnInflow, totalColumnOutflow, mLayerBaseflow and length2area due to a divide-by-zero error. While setting HRU area = 0 is perhaps not the most logical choice, debugging core dumps that result of this is tricky and adding a preliminary check would help the user figure out what's wrong.