[Swift-commit] r5527 - SwiftApps/SciColSim

wilde at ci.uchicago.edu wilde at ci.uchicago.edu
Mon Jan 30 13:22:51 CST 2012


Author: wilde
Date: 2012-01-30 13:22:51 -0600 (Mon, 30 Jan 2012)
New Revision: 5527

Modified:
   SwiftApps/SciColSim/annealing.swift
Log:
Fix hang situation at end of first cycle. Caused by tracef() on variables that are likely not closed due to if() scope logic. Possible Swift bug - need to investigate. See commented-out tracef().

Modified: SwiftApps/SciColSim/annealing.swift
===================================================================
--- SwiftApps/SciColSim/annealing.swift	2012-01-30 18:48:59 UTC (rev 5526)
+++ SwiftApps/SciColSim/annealing.swift	2012-01-30 19:22:51 UTC (rev 5527)
@@ -99,7 +99,7 @@
                     dx[i][k] = dx[i-1][k] * 2.0;
                     # FIXME: re-enable: rejection[i][k]=rejection[i-1][k];
                 }
-                tracef(color(Red,"Recomputed rejection: i=%d k=%d dx[i][k]=%f\n"), i, k, dx[i][k]);
+                // FIXME: HANGS? : tracef(color(Red,"Recomputed rejection: i=%d k=%d dx[i][k]=%f\n"), i, k, dx[i][k]);
             }
             tracef(color(Blue, "multi_annealing: AR: New cycle at %i: dx[0-4]=[%f %f %f %f %f]\n"),i,dx[i][0],dx[i][1],dx[i][2],dx[i][3],dx[i][4]);
         }




More information about the Swift-commit mailing list