Skip to content

Commit aae6425

Browse files
committedMay 23, 2013
Revised errors found upon running, did not error check for submitting
1 parent aa3c407 commit aae6425

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed
 

‎cluster/cluster_traj_all.sh

+8-14
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OPTIONS:
1414
-h Show this message
1515
-o [*] Output naming scheme; kept consistent between folders & jobs
1616
-T [*] Location of long .mdp file to run at equilibrium; it is run once between folders.
17-
-t [*] Location of short .mdp file to run at equilibrium; it is run once between trajectories in a given folder.
17+
-s [*] Location of short .mdp file to run at equilibrium; it is run once between trajectories in a given folder.
1818
-f [*] Location of .mdp file to run as a trajectory; alternates running with -t.
1919
-c [*] Location of .gro file to use as initial configuration
2020
-p [*] Location of .top file to use for parameters
@@ -46,7 +46,7 @@ READY=
4646
P_THREAD=
4747
WALL=
4848
WARN=
49-
while getopts “ho:T:t:f:c:p:t:N:n:12RP:W:w:” OPTION
49+
while getopts “ho:T:s:f:c:p:t:N:n:12RP:W:w:” OPTION
5050
do
5151
case $OPTION in
5252
h)
@@ -59,7 +59,7 @@ do
5959
T)
6060
FOLDMDP=$OPTARG
6161
;;
62-
t)
62+
s)
6363
STEPMDP=$OPTARG
6464
;;
6565
f)
@@ -105,16 +105,10 @@ do
105105
esac
106106
done
107107

108-
NAME=
109-
FOLDMDP=
110-
STEPMDP=
111-
TRAJMDP=
112-
GRO=
113-
CPT=
114-
TOP=
115108
if [[ -z $NAME ]] || [[ -z $FOLDMDP ]] || [[ -z $STEPMDP ]] || [[ -z $TRAJMDP ]] || [[ -z $GRO ]] || [[ -z $CPT ]] || [[ -z $TOP ]] || [[ -z $CLUSTER ]]
116109
then
117-
echo "BAD INPUT."
110+
echo "Missing required input."
111+
echo "NAME: $NAME LongSpacer: $FOLDMDP ShortSpacer $STEPMDP Trajectory $TRAJMDP .groFile $GRO .cptFile $CPT .topFile $TOP cluster $CLUSTER"
118112
usage
119113
exit 1
120114
fi
@@ -123,8 +117,7 @@ if [ $CLUSTER = "HOPPER" ]; then
123117
echo "Not yet built for Hopper"
124118
fi
125119

126-
if [[ -z $WARN ]]
127-
then
120+
if [[ -z $WARN ]]; then
128121
WARN="-maxwarn $WARN"
129122
fi
130123

@@ -202,7 +195,7 @@ if [ $CLUSTER = "CATAMOUNT" ]; then
202195
if [[ $READY ]]; then
203196
echo 'JOBID=`qsub $NAME-tprep.pbs`; fi'
204197
JOBID='fake'
205-
198+
fi
206199

207200
#---------------------------------------
208201
# Run the trajectories, array style
@@ -256,4 +249,5 @@ if [ $CLUSTER = "CATAMOUNT" ]; then
256249

257250
if [ $READY ]; then
258251
echo "qsub $NAME-traj.pbs -t 1-$NFOLD -W depend=afterok:$JOBID; fi"
252+
fi
259253
fi

0 commit comments

Comments
 (0)
Please sign in to comment.