[Swift-commit] r5957 - SwiftApps/ParVis/HiRAMTools

wilde at ci.uchicago.edu wilde at ci.uchicago.edu
Tue Oct 9 20:04:22 CDT 2012


Author: wilde
Date: 2012-10-09 20:04:22 -0500 (Tue, 09 Oct 2012)
New Revision: 5957

Modified:
   SwiftApps/ParVis/HiRAMTools/makeyearly.swift
Log:
Add stdout/err handling.

Modified: SwiftApps/ParVis/HiRAMTools/makeyearly.swift
===================================================================
--- SwiftApps/ParVis/HiRAMTools/makeyearly.swift	2012-10-10 00:17:46 UTC (rev 5956)
+++ SwiftApps/ParVis/HiRAMTools/makeyearly.swift	2012-10-10 01:04:22 UTC (rev 5957)
@@ -9,13 +9,15 @@
 string rundir=@arg("rundir","NO-OUTDIR-SPECIFIED");
 string ncfile=@arg("ncfile","ncfiles");
 
-app makeyearly (string dir, string f1, string f2)
+app (file sout, file serr) makeyearly (string dir, string f1, string f2)
 {
-  makeyearly f1 f2 dir;
+  makeyearly f1 f2 dir stdout=@sout stderr=@serr;
 }
 
 ncrec nc[] = readData(ncfile);
 
-foreach n in nc {
-  makeyearly(rundir,n.f1,n.f2);
+foreach n,i in nc {
+  file so <single_file_mapper; file=@strcat("stdlog/stdout.",i)>;
+  file se <single_file_mapper; file=@strcat("stdlog/stderr.",i)>;
+  (so,se) = makeyearly(rundir,n.f1,n.f2);
 }




More information about the Swift-commit mailing list