Flow computation on massive grid terrains