-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun_reus.sh
executable file
·34 lines (31 loc) · 962 Bytes
/
run_reus.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
i=$1
export CUDA_VISIBLE_DEVICES=$i
windows=$2
di=$3
run=$4
run_prv=$(($4 - 1))
MFP=$5
if [ $run -eq 0 ]; then
while [ $i -lt $windows ]
do
cd win.$i
echo Starting Window $i
time $AMBERHOME/bin/pmemd.cuda -O -i reus.w$i.in -o $MFP.w$i.run$run.log -p ../$MFP.prmtop -c $MFP.w$i.start.rst -r $MFP.w$i.run$run.rst -x $MFP.w$i.run$run.mdcrd -inf $MFP.w$i.run$run.inf
echo Finished Window $i
mv $MFP.w$i.runYY.dat $MFP.w$i.run$run.dat
((i+=$di))
cd ..
done
else
while [ $i -lt $windows ]
do
cd win.$i
echo Starting Window $i
time $AMBERHOME/bin/pmemd.cuda -O -i reus.w$i.in -o $MFP.w$i.run$run.log -p ../$MFP.prmtop -c $MFP.w$i.run$run_prv.rst -r $MFP.w$i.run$run.rst -x $MFP.w$i.run$run.mdcrd -inf $MFP.w$i.run$run.inf
echo Finished Window $i
mv -vf $MFP.w$i.runYY.dat $MFP.w$i.run$run.dat
((i+=$di))
cd ..
done
fi