[GRASS-SVN] r38255 - grass/trunk/raster/r.terraflow

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jul 5 09:49:24 EDT 2009


Author: neteler
Date: 2009-07-05 09:49:24 -0400 (Sun, 05 Jul 2009)
New Revision: 38255

Modified:
   grass/trunk/raster/r.terraflow/main.cc
Log:
restore use of flowStream subdir

Modified: grass/trunk/raster/r.terraflow/main.cc
===================================================================
--- grass/trunk/raster/r.terraflow/main.cc	2009-07-05 13:47:33 UTC (rev 38254)
+++ grass/trunk/raster/r.terraflow/main.cc	2009-07-05 13:49:24 UTC (rev 38255)
@@ -564,7 +564,10 @@
   
 #else 
   AMI_STREAM<waterWindowBaseType> *flowStream;
-  flowStream = new AMI_STREAM<waterWindowBaseType>(streamdir->answer);
+  char path[GPATH_MAX];
+
+  sprintf(path, "%s/flowStream", streamdir->answer);
+  flowStream = new AMI_STREAM<waterWindowBaseType>(path);
   fprintf(stderr, "flowStream opened: len=%d\n", flowStream->stream_len());
   fprintf(stderr, "jumping to flow accumulation computation\n");
 #endif



More information about the grass-commit mailing list