[Swift-commit] r6945 - SwiftTutorials/CIC_2013-08-09/part03
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Thu Aug 22 11:28:19 CDT 2013
Author: wilde
Date: 2013-08-22 11:28:19 -0500 (Thu, 22 Aug 2013)
New Revision: 6945
Removed:
SwiftTutorials/CIC_2013-08-09/part03/p3.swift
Log:
fix svn prob w p3
Deleted: SwiftTutorials/CIC_2013-08-09/part03/p3.swift
===================================================================
--- SwiftTutorials/CIC_2013-08-09/part03/p3.swift 2013-08-22 16:11:47 UTC (rev 6944)
+++ SwiftTutorials/CIC_2013-08-09/part03/p3.swift 2013-08-22 16:28:19 UTC (rev 6945)
@@ -1,24 +0,0 @@
-type file;
-
-app (file o) mysim (int timesteps)
-{
- simulate timesteps stdout=@filename(o);
-}
-
-app (file o) analyze (file s[])
-{
- stats @filenames(s) stdout=@filename(o);
-}
-
-file sims[];
-int nsim = @toInt(@arg("nsim","10"));
-int steps = @toInt(@arg("steps","1"));
-
-foreach i in [0:nsim-1] {
- file simout <single_file_mapper; file=@strcat("output/sim_",i,".out")>;
- simout = mysim(steps);
- sims[i] = simout;
-}
-
-file stats<"output/average.out">;
-stats = analyze(sims);
More information about the Swift-commit
mailing list