[GRASS-SVN] r44626 - in grass/branches/develbranch_6/raster/r.watershed: ram seg

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 17 10:14:07 EST 2010


Author: mmetz
Date: 2010-12-17 07:14:07 -0800 (Fri, 17 Dec 2010)
New Revision: 44626

Modified:
   grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c
   grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c
Log:
always mark as processed

Modified: grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c	2010-12-17 11:15:48 UTC (rev 44625)
+++ grass/branches/develbranch_6/raster/r.watershed/ram/do_cum.c	2010-12-17 15:14:07 UTC (rev 44626)
@@ -146,6 +146,7 @@
 	G_percent(killer, do_points, 1);
 	this_index = astar_pts[killer];
 	seg_index_rc(alt_seg, this_index, &r, &c);
+	FLAG_SET(worked, r, c);
 	aspect = asp[this_index];
 	if (aspect) {
 	    dr = r + asp_r[ABS(aspect)];
@@ -359,7 +360,6 @@
 		if (er_flag && !is_swale)
 		    slope_length(r, c, r_max, c_max);
 	    }
-	    FLAG_SET(worked, r, c);
 	}
     }
     if (workedon)

Modified: grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c
===================================================================
--- grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c	2010-12-17 11:15:48 UTC (rev 44625)
+++ grass/branches/develbranch_6/raster/r.watershed/seg/do_cum.c	2010-12-17 15:14:07 UTC (rev 44626)
@@ -163,6 +163,7 @@
 	first_cum = point.nxt;
 	r = point.r;
 	c = point.c;
+	bseg_put(&worked, &one, r, c);
 	cseg_get(&asp, &asp_val, r, c);
 	if (asp_val) {
 	    dr = r + asp_r[ABS(asp_val)];
@@ -377,7 +378,6 @@
 		if (er_flag && !is_swale)
 		    slope_length(r, c, r_max, c_max);
 	    }
-	    bseg_put(&worked, &one, r, c);
 	}
     }
     G_percent(count, do_points, 1);	/* finish it */



More information about the grass-commit mailing list