[GRASS-SVN] r30165 - grass/trunk/raster/simwe/simlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 15 10:07:27 EST 2008


Author: helena
Date: 2008-02-15 10:07:27 -0500 (Fri, 15 Feb 2008)
New Revision: 30165

Modified:
   grass/trunk/raster/simwe/simlib/output.c
Log:
#48: command line options saving added

Modified: grass/trunk/raster/simwe/simlib/output.c
===================================================================
--- grass/trunk/raster/simwe/simlib/output.c	2008-02-15 09:55:59 UTC (rev 30164)
+++ grass/trunk/raster/simwe/simlib/output.c	2008-02-15 15:07:27 UTC (rev 30165)
@@ -489,6 +489,9 @@
       sprintf (hist.datsrc_1, "input files: %s %s %s", elevin,dxin,dyin);
       sprintf (hist.datsrc_2, "input files: %s %s %s", rain,infil,manin);
     hist.edlinecnt = 4;
+
+   G_command_history(&hist);
+
     if (ts == 1) G_write_history (depth0, &hist);
 	else
     G_write_history (depth, &hist);
@@ -508,7 +511,7 @@
 /*    fprintf (stdout, "\n history initiated\n");
     fflush(stdout);*/
 
-    sprintf(hist.edhist[0],"init.walk=%d, maxwalk=%d, remaining walkers=%d",nwalk,maxwa,nwalka);
+    sprintf(hist.edhist[0],"init.walkers=%d, maxwalk=%d, rem. walkers=%d",nwalk,maxwa,nwalka);
     sprintf(hist.edhist[1],"duration (sec.)=%d, time-serie iteration=%d",timesec,tt);
 
     sprintf(hist.edhist[2],"written walkers=%d, deltap=%f, mean vel.=%f",
@@ -519,6 +522,9 @@
       sprintf (hist.datsrc_1, "input files: %s %s %s", elevin,dxin,dyin);
       sprintf (hist.datsrc_2, "input files: %s %s %s", rain,infil,manin);
     hist.edlinecnt = 4;
+
+   G_command_history(&hist);
+
     if (ts == 1) G_write_history (disch0, &hist);
 	else
     G_write_history (disch, &hist);
@@ -550,6 +556,9 @@
       sprintf (hist.datsrc_2, "input files: %s %s %s %s", manin,detin,tranin,tauin);
 
     hist.edlinecnt = 4;
+
+    G_command_history(&hist);
+
     if (ts == 1) G_write_history (flux0, &hist);
 	else
     G_write_history (flux, &hist);
@@ -704,7 +713,6 @@
   /*  } */
    }
 
-
    return 1;
 }
 



More information about the grass-commit mailing list