updates to snow_melt.c for glacier code.