[Swift-commit] r5545 - SwiftApps/SciColSim

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Thu Feb 2 15:20:14 CST 2012


Author: jonmon
Date: 2012-02-02 15:20:13 -0600 (Thu, 02 Feb 2012)
New Revision: 5545

Modified:
   SwiftApps/SciColSim/README
   SwiftApps/SciColSim/annealing.swift
Log:
parameterize nreps variable and added spot for documentation in the README



Modified: SwiftApps/SciColSim/README
===================================================================
--- SwiftApps/SciColSim/README	2012-02-02 19:00:16 UTC (rev 5544)
+++ SwiftApps/SciColSim/README	2012-02-02 21:20:13 UTC (rev 5545)
@@ -174,6 +174,7 @@
 	-rerunsperapp=<int>
 	    Number of evolve reruns to do per app call
 
+    -nreps=<int>
 
 
 Optimizer output (both from C++ optimizer and Swift) generates text

Modified: SwiftApps/SciColSim/annealing.swift
===================================================================
--- SwiftApps/SciColSim/annealing.swift	2012-02-02 19:00:16 UTC (rev 5544)
+++ SwiftApps/SciColSim/annealing.swift	2012-02-02 21:20:13 UTC (rev 5545)
@@ -285,7 +285,7 @@
 
     // FIXME: add provision for random priming and random param values when x[i] == -100 (see optimizer.cpp main())
 
-    int nreps = 1; // 15
+    int nreps = @toint(@arg("nreps", "1"));
 
 //    file bestfile <single_file_mapper; file=@strcat("output/T",target,".R",rep,".best_opt_some")>;
 //    file maxfile <single_file_mapper; file=@strcat("output/T",target,".R",rep,".max_dist")>;




More information about the Swift-commit mailing list