SNOWPACK can crash with no snow and no soil
SNOWPACK can crash in WaterTransport::compTopFlux if there is no soil, and no snow (i.e., nE==0), and ql > 0, because then there is a reference to EMS[nE-1], which doesn't exist.
WSL/SLF GitLab Repository
SNOWPACK can crash in WaterTransport::compTopFlux if there is no soil, and no snow (i.e., nE==0), and ql > 0, because then there is a reference to EMS[nE-1], which doesn't exist.