[GRASS-SVN] r68291 - grass/trunk/raster/r.sim/r.sim.water

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 20 17:58:25 PDT 2016


Author: annakrat
Date: 2016-04-20 17:58:25 -0700 (Wed, 20 Apr 2016)
New Revision: 68291

Modified:
   grass/trunk/raster/r.sim/r.sim.water/main.c
Log:
r.sim.water: add debug messages to understand #2966

Modified: grass/trunk/raster/r.sim/r.sim.water/main.c
===================================================================
--- grass/trunk/raster/r.sim/r.sim.water/main.c	2016-04-20 18:19:45 UTC (rev 68290)
+++ grass/trunk/raster/r.sim/r.sim.water/main.c	2016-04-21 00:58:25 UTC (rev 68291)
@@ -300,6 +300,8 @@
 
     conv = G_database_units_to_meters_factor();
 
+    G_debug(3, "Conversion factor is set to: %f", conv);
+
     mixx = conv * cellhd.west;
     maxx = conv * cellhd.east;
     miyy = conv * cellhd.south;
@@ -320,6 +322,8 @@
     xmax = xmin + stepx * (float)mx;
     ymax = ymin + stepy * (float)my;
 
+    G_debug(3, "xmax: %f, ymax: %f", xmax, ymax);
+
     ts = flag.tserie->answer;
 
     elevin = parm.elevin->answer;
@@ -334,6 +338,8 @@
     err = parm.err->answer;
     outwalk = parm.outwalk->answer; 
 
+    G_debug(3, "Parsing numeric parameters");
+
     sscanf(parm.niter->answer, "%d", &timesec);
     sscanf(parm.outiter->answer, "%d", &iterout);
     sscanf(parm.diffc->answer, "%lf", &frac);
@@ -341,6 +347,8 @@
     sscanf(parm.halpha->answer, "%lf", &halpha);
     sscanf(parm.hbeta->answer, "%lf", &hbeta);
 
+    G_debug(3, "Parsing rain parameters");
+
     /* if no rain map input, then: */
     if (parm.rain->answer == NULL) {
 	/*Check for Rain Unique Value Input */



More information about the grass-commit mailing list