[Swift-commit] r5599 - SwiftApps/SciColSim

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Mon Feb 13 15:01:52 CST 2012


Author: jonmon
Date: 2012-02-13 15:01:51 -0600 (Mon, 13 Feb 2012)
New Revision: 5599

Modified:
   SwiftApps/SciColSim/evolve.sh
Log:
o added some error checking for openmp-optimizer



Modified: SwiftApps/SciColSim/evolve.sh
===================================================================
--- SwiftApps/SciColSim/evolve.sh	2012-02-13 20:51:32 UTC (rev 5598)
+++ SwiftApps/SciColSim/evolve.sh	2012-02-13 21:01:51 UTC (rev 5599)
@@ -4,4 +4,16 @@
 shift 1
 NWORKERS=${23}
 OMP_NUM_THREADS=$NWORKERS $(dirname $0)/openmp-optimizer $* 2>&1
+if [ $? == 127 ];
+then
+    echo "Missing openmp-optimizer binary" >&2
+    exit 1
+fi
+
+if [ $? != 0 ];
+then
+    echo "Problem running the openmp-optimizer" >&2
+    exit 1
+fi
+
 mv multi_loss.data $datafile




More information about the Swift-commit mailing list