[GRASS-SVN] r71607 - grass/trunk/raster/r.stream.extract

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Oct 29 08:38:41 PDT 2017


Author: mmetz
Date: 2017-10-29 08:38:41 -0700 (Sun, 29 Oct 2017)
New Revision: 71607

Modified:
   grass/trunk/raster/r.stream.extract/main.c
Log:
r.stream.extract: remove problematic infinity as default answer for input TYPE_DOUBLE option

Modified: grass/trunk/raster/r.stream.extract/main.c
===================================================================
--- grass/trunk/raster/r.stream.extract/main.c	2017-10-29 10:21:34 UTC (rev 71606)
+++ grass/trunk/raster/r.stream.extract/main.c	2017-10-29 15:38:41 UTC (rev 71607)
@@ -110,7 +110,6 @@
 	_("If accumulation is larger than d8cut, SFD is used instead of MFD."
 	  " Applies only if no accumulation map is given.");
     input.d8cut->required = NO;
-    input.d8cut->answer = "infinity";
     input.d8cut->type = TYPE_DOUBLE;
 
     input.mont_exp = G_define_option();
@@ -192,7 +191,7 @@
 	G_fatal_error(_("Threshold must be > 0 but is %f"), threshold);
 
     /* d8cut */
-    if (strcmp(input.d8cut->answer, "infinity") == 0) {
+    if (!input.d8cut->answer) {
 	d8cut = DBL_MAX;
     }
     else {



More information about the grass-commit mailing list