[GRASS-SVN] r40656 -
grass/branches/releasebranch_6_4/raster/r.watershed/ram
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 26 03:53:16 EST 2010
Author: mmetz
Date: 2010-01-26 03:53:12 -0500 (Tue, 26 Jan 2010)
New Revision: 40656
Modified:
grass/branches/releasebranch_6_4/raster/r.watershed/ram/init_vars.c
Log:
initialize asp
Modified: grass/branches/releasebranch_6_4/raster/r.watershed/ram/init_vars.c
===================================================================
--- grass/branches/releasebranch_6_4/raster/r.watershed/ram/init_vars.c 2010-01-26 05:38:22 UTC (rev 40655)
+++ grass/branches/releasebranch_6_4/raster/r.watershed/ram/init_vars.c 2010-01-26 08:53:12 UTC (rev 40656)
@@ -194,6 +194,12 @@
}
G_close_cell(fd);
}
+ else {
+ for (r = 0; r < nrows; r++) {
+ for (c = 0; c < ncols; c++)
+ asp[SEG_INDEX(wat_seg, r, c)] = 0;
+ }
+ }
if (ob_flag) {
fd = G_open_cell_old(ob_name, ob_mapset);
More information about the grass-commit
mailing list