[GRASS-SVN] r73986 - grass-addons/grass7/raster/r.accumulate

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 20 13:10:52 PST 2019


Author: hcho
Date: 2019-01-20 13:10:52 -0800 (Sun, 20 Jan 2019)
New Revision: 73986

Modified:
   grass-addons/grass7/raster/r.accumulate/main.c
Log:
r.accumulate: Do not require id options

Modified: grass-addons/grass7/raster/r.accumulate/main.c
===================================================================
--- grass-addons/grass7/raster/r.accumulate/main.c	2019-01-20 20:34:36 UTC (rev 73985)
+++ grass-addons/grass7/raster/r.accumulate/main.c	2019-01-20 21:10:52 UTC (rev 73986)
@@ -328,10 +328,12 @@
 
         Vect_close(&Map);
 
-        if (n < outlet_pl.n)
-            G_fatal_error(_("Too few longest flow path IDs specified"));
-        if (n > outlet_pl.n)
-            G_fatal_error(_("Too many longest flow path IDs specified"));
+	if (driver) {
+	    if (n < outlet_pl.n)
+		G_fatal_error(_("Too few longest flow path IDs specified"));
+	    if (n > outlet_pl.n)
+		G_fatal_error(_("Too many longest flow path IDs specified"));
+	}
     }
 
     thresh = opt.thresh->answer ? atof(opt.thresh->answer) : 0.0;



More information about the grass-commit mailing list