[GRASS-SVN] r52592 - grass-addons/grass7/vector/v.surf.icw

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 8 02:28:39 PDT 2012


Author: hamish
Date: 2012-08-08 02:28:38 -0700 (Wed, 08 Aug 2012)
New Revision: 52592

Modified:
   grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py
Log:
fix stalling on i=0 bug (thanks Jan)

Modified: grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py
===================================================================
--- grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py	2012-08-08 09:12:53 UTC (rev 52591)
+++ grass-addons/grass7/vector/v.surf.icw/v.surf.icw.py	2012-08-08 09:28:38 UTC (rev 52592)
@@ -299,7 +299,7 @@
                       cost_n_cleansed = cost_site_name + '.cleansed',
                       cost_n = cost_site_name, quiet = True)
 	# stall to wait for the nth worker to complete,
-	if i % workers is 0:
+	if (i+1) % workers is 0:
 	    #print 'stalling ...'
 	    proc[i].wait()
 
@@ -341,7 +341,7 @@
 		                      friction = friction,
 				      quiet = True)
 	# stall to wait for the nth worker to complete,
-	if i % workers is 0:
+	if (i+1) % workers is 0:
 	    #print 'stalling ...'
 	    proc[i].wait()
 



More information about the grass-commit mailing list