[Swift-commit] r8222 - SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Thu Aug 14 16:22:47 CDT 2014


Author: wozniak
Date: 2014-08-14 16:22:47 -0500 (Thu, 14 Aug 2014)
New Revision: 8222

Modified:
   SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh
   SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-local-mds.sh
Log:
Update args


Modified: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh
===================================================================
--- SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh	2014-08-14 21:01:14 UTC (rev 8221)
+++ SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh	2014-08-14 21:22:47 UTC (rev 8222)
@@ -1,6 +1,7 @@
-#!/bin/sh -eu
+#!/bin/zsh -eu
 
-A=( SIMULATIONS STEPS NP ND MASS DT SEED )
+A=( SIMULATIONS NP ND STEP_NUM STEP_PRINT_NUM DT MASS PRINTINFO
+    SCALE_FACTOR SCALE_OFFSET SEED )
 
 if [[ ${#*} != ${#A} ]]
 then
@@ -11,7 +12,7 @@
 # Scan argv
 for a in ${A}
 do
-  eval ${a}=$1
+  eval "${a}='$1'"
   shift
 done
 
@@ -22,10 +23,15 @@
 PROGRAM=run-mds
 stc     ${PROGRAM}.swift
 turbine-cobalt-run.zsh -n 2 -s ${SETTINGS} ${PROGRAM}.tcl \
-  --simulations=${SIMULATIONS} \
-  --steps=${STEPS}             \
-  --np=${NP}                   \
-  --nd=${ND}                   \
-  --mass=${MASS}               \
-  --dt=${DT}                   \
+  --simulations=${SIMULATIONS}       \
+  --np=${NP}                         \
+  --nd=${ND}                         \
+  --step_num=${STEP_NUM}             \
+  --step_print_num=${STEP_PRINT_NUM} \
+  --dt=${DT}                         \
+  --mass=${MASS}                     \
+  --printinfo=${PRINTINFO}           \
+  --scale_factor=${SCALE_FACTOR}     \
+  --scale_offset=${SCALE_OFFSET}     \
   --seed=${SEED}
+

Modified: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-local-mds.sh
===================================================================
--- SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-local-mds.sh	2014-08-14 21:01:14 UTC (rev 8221)
+++ SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-local-mds.sh	2014-08-14 21:22:47 UTC (rev 8222)
@@ -1,6 +1,6 @@
 #!/bin/zsh -eu
 
-A=( SIMULATIONS ND NP STEP_NUM STEP_PRINT_NUM DT MASS PRINTINFO
+A=( SIMULATIONS NP ND STEP_NUM STEP_PRINT_NUM DT MASS PRINTINFO
     SCALE_FACTOR SCALE_OFFSET SEED )
 
 if [[ ${#*} != ${#A} ]]




More information about the Swift-commit mailing list