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

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Thu Aug 14 09:30:44 CDT 2014


Author: wozniak
Date: 2014-08-14 09:30:42 -0500 (Thu, 14 Aug 2014)
New Revision: 8169

Added:
   SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh
Log:
Multi-sim compute script


Copied: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh (from rev 8167, 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-compute-mds.sh	                        (rev 0)
+++ SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/05-md/run-compute-mds.sh	2014-08-14 14:30:42 UTC (rev 8169)
@@ -0,0 +1,31 @@
+#!/bin/zsh -eu
+
+A=( SIMULATIONS STEPS NP ND MASS DT SEED )
+
+if [[ ${#*} != ${#A} ]]
+then
+  echo "usage: ${A}"
+  exit 1
+fi
+
+# Scan argv
+for a in ${A}
+do
+  eval ${a}=$1
+  shift
+done
+
+source ../../cfg/setup-local.sh
+source setup-md.sh
+SETTINGS=../../cfg/settings-compute.sh
+
+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}                   \
+  --seed=${SEED}




More information about the Swift-commit mailing list