A glacial-process model: The role of spatial and temporal variations in glacier thermal regime