[GRASS-SVN] r56041 - grass-addons/grass7/raster/r.agent

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 30 02:15:14 PDT 2013


Author: mic
Date: 2013-04-30 02:15:13 -0700 (Tue, 30 Apr 2013)
New Revision: 56041

Modified:
   grass-addons/grass7/raster/r.agent/r.agent.aco
Log:
add debugging text for now

Modified: grass-addons/grass7/raster/r.agent/r.agent.aco
===================================================================
--- grass-addons/grass7/raster/r.agent/r.agent.aco	2013-04-30 08:32:31 UTC (rev 56040)
+++ grass-addons/grass7/raster/r.agent/r.agent.aco	2013-04-30 09:15:13 UTC (rev 56041)
@@ -273,11 +273,14 @@
         mainloops = 1
         nextwrite = rounds
     while mainloops > 0:
+        grass.info(mainloops)
         # loop and write out the contents at the end
         loops = nextwrite
         while loops > 0:
+            grass.info(loops)
             # loop without producing output
             if len(world.agents) < world.maxants:
+                grass.info(len(world.agents))
                 # as there is still space on the pg, produce another ant
                 # at a random site..
                 position = world.sites[randint(0, len(world.sites)-1)]



More information about the grass-commit mailing list