-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain_backup2.sh
64 lines (59 loc) · 1.49 KB
/
main_backup2.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#/bin/bash
#clean dir
rm *.log *.dat *.xyz *.pid
for i in `ls -d */`
do
rm -rf $i
done
cwd=$PWD
assocdir='assoc'
mkdir ./${assocdir}
chmod -R 750 ../code/
cp ../code/* ${cwd}/
cp ../code/* ${cwd}/${assocdir}/
#step 1: assoc TNT with OH
#enter assocdir
cd ${cwd}/${assocdir}/
amk.sh assoc.dat > assoc.log
# enter assoc_fragA_fragB dir
cd ${cwd}/${assocdir}/assoc*/
#cp ../out2xyz.sh ./
#step 2: convert out file to xyz file
#if lowlevel is mopac
# for i in `ls DISCNT*`
# do
# inputname=${i:7}
# get_geom_mopac.sh $i >${inputname}.xyz
# echo ${inputname}.xyz
# done
# cd ${cwd}
# if lowlevel is qcore
for i in `ls assoc*opt.xyz`
do
echo ${i}
done
cd ${cwd}
#step 3: run amk lowlevel get opt results
llcaculation='llcaculation'
mkdir ./${llcaculation}
cp ${cwd}/amk_template.dat ${cwd}/${llcaculation}/
#cp ${cwd}/${assocdir}/assoc*/*.xyz ./${llcaculation}/
# qcore
cp ${cwd}/${assocdir}/assoc*/*opt.xyz ./${llcaculation}/
cd ${cwd}/${llcaculation}
# ll caculation for every assocX.xyz file
for j in `ls *.xyz`
do
inputname=`basename $j .xyz`
mkdir ${inputname}
cp $j ./${inputname}/
cp ./amk_template.dat ./${inputname}/
cd ./${inputname}/
#replace molecular name by xyz file name
awk '{sub(/amk_mol/,"'$inputname'"); print$0}' amk_template.dat > ${inputname}.dat
#nohup llcalcs.sh ${inputname}.dat 10 3 8 >llcalcs.log 2>&1 &
nohup ${cwd}/llcalcs_TS.sh ${inputname}.dat 2 1 1 >llcalcs_TS.log 2>&1 &
cd ${cwd}/${llcaculation}
done
#cp -r ./ ../backup/
# hl caculation