[GRASS-SVN] r49314 - grass/trunk/raster/r.watershed/seg

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 20 06:28:40 EST 2011


Author: mmetz
Date: 2011-11-20 03:28:39 -0800 (Sun, 20 Nov 2011)
New Revision: 49314

Modified:
   grass/trunk/raster/r.watershed/seg/init_vars.c
Log:
r.watershed.seg: fix memory calculation

Modified: grass/trunk/raster/r.watershed/seg/init_vars.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/init_vars.c	2011-11-20 07:18:57 UTC (rev 49313)
+++ grass/trunk/raster/r.watershed/seg/init_vars.c	2011-11-20 11:28:39 UTC (rev 49314)
@@ -161,7 +161,7 @@
 
     /* balance segment files */
     /* elevation + accumulation: * 2 */
-    memory_divisor =  seg_factor * 8 * 2;
+    memory_divisor =  seg_factor * sizeof(WAT_ALT) * 2;
     /* aspect: as is */
     memory_divisor += seg_factor;
     /* flags: * 4 */



More information about the grass-commit mailing list