[GRASS-SVN] r71618 - grass/trunk/raster/r.watershed/seg
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Oct 31 12:06:20 PDT 2017
Author: mmetz
Date: 2017-10-31 12:06:19 -0700 (Tue, 31 Oct 2017)
New Revision: 71618
Modified:
grass/trunk/raster/r.watershed/seg/init_vars.c
Log:
r.watershed: revert r71614
Modified: grass/trunk/raster/r.watershed/seg/init_vars.c
===================================================================
--- grass/trunk/raster/r.watershed/seg/init_vars.c 2017-10-31 18:41:43 UTC (rev 71617)
+++ grass/trunk/raster/r.watershed/seg/init_vars.c 2017-10-31 19:06:19 UTC (rev 71618)
@@ -430,7 +430,7 @@
G_debug(1, "open segments for A* points");
/* columns per segment */
- seg_cols = seg_rows * 200; /* check for integer overflow ? */
+ seg_cols = seg_rows * seg_rows;
num_cseg_total = do_points / seg_cols;
if (do_points % seg_cols > 0)
num_cseg_total++;
@@ -449,7 +449,7 @@
G_debug(1, "heap memory %.2f MB", heap_mem);
/* columns per segment */
/* larger is faster */
- seg_cols = seg_rows * 300; /* check for integer overflow ? */
+ seg_cols = seg_rows * seg_rows * seg_rows;
num_cseg_total = do_points / seg_cols;
if (do_points % seg_cols > 0)
num_cseg_total++;
More information about the grass-commit
mailing list