root / examples / Mopac / CSMe6_mixed / run_Path @ 12
Historique | Voir | Annoter | Télécharger (1,41 ko)
1 | 1 | pfleura2 | #!/bin/bash |
---|---|---|---|
2 | 1 | pfleura2 | |
3 | 1 | pfleura2 | ###################################### |
4 | 1 | pfleura2 | # |
5 | 1 | pfleura2 | # you might have to change the following variables |
6 | 1 | pfleura2 | # |
7 | 1 | pfleura2 | ###################################### |
8 | 1 | pfleura2 | # |
9 | 1 | pfleura2 | # Name of the input file |
10 | 1 | pfleura2 | # |
11 | 1 | pfleura2 | Job=CSMe6_Syn |
12 | 1 | pfleura2 | # |
13 | 1 | pfleura2 | # Where is Path.exe ?? |
14 | 1 | pfleura2 | # |
15 | 12 | pfleura2 | PathExe=../../../src/Path.exe |
16 | 1 | pfleura2 | # |
17 | 1 | pfleura2 | ### MOPAC Stuff |
18 | 1 | pfleura2 | # In fact, this is useless as they are defined again in the mopac script |
19 | 1 | pfleura2 | cat << EOF > ./mopac |
20 | 1 | pfleura2 | #!/bin/bash |
21 | 1 | pfleura2 | |
22 | 1 | pfleura2 | set -x |
23 | 1 | pfleura2 | ## You might have to change MOPAC_ROOT and/or MOPAC_LICENSE |
24 | 12 | pfleura2 | export MOPAC_ROOT=~/Programs/MOPAC2012 |
25 | 1 | pfleura2 | export MOPAC_LICENSE=\${MOPAC_ROOT} |
26 | 12 | pfleura2 | export mopac=\${MOPAC_ROOT}/MOPAC2012.exe |
27 | 1 | pfleura2 | |
28 | 1 | pfleura2 | echo "Running \${mopac} \$1" |
29 | 1 | pfleura2 | \${mopac} \$1 |
30 | 1 | pfleura2 | Out=\`basename \$1 .mop\`.out |
31 | 1 | pfleura2 | |
32 | 1 | pfleura2 | EOF |
33 | 1 | pfleura2 | chmod u+x ./mopac |
34 | 1 | pfleura2 | # |
35 | 1 | pfleura2 | # Some libraries... that might need to be adapted to your system |
36 | 1 | pfleura2 | # |
37 | 1 | pfleura2 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/lib/ |
38 | 1 | pfleura2 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/fc/9.1.037/lib/:/opt/intel/cc/9.1.045/lib:/usr/lib:/opt/intel/mkl/8.1/lib/32 |
39 | 1 | pfleura2 | export PATH=/opt/intel/fc/9.1.037/bin/:/opt/intel/cc/9.1.045/bin/:$PATH:$HOME/bin:/usr/local/mpich-intel9/bin |
40 | 1 | pfleura2 | export LD_RUN_PATH=$LD_RUN_PATH:/opt/intel/fc/9.1.037/lib/:/opt/intel/cc/9.1.045/lib |
41 | 1 | pfleura2 | export MANPATH=$MANPATH:/opt/intel/fc/9.1.037/man/:/opt/intel/cc/9.1.045/man |
42 | 1 | pfleura2 | export LANG=C |
43 | 1 | pfleura2 | # |
44 | 1 | pfleura2 | #Usually nothing has to be changed after this line |
45 | 1 | pfleura2 | # |
46 | 1 | pfleura2 | ################################################# |
47 | 1 | pfleura2 | |
48 | 1 | pfleura2 | ############################### |
49 | 1 | pfleura2 | # |
50 | 1 | pfleura2 | # We launch PATH |
51 | 1 | pfleura2 | # |
52 | 1 | pfleura2 | ############################### |
53 | 1 | pfleura2 | ln -fs ${PathExe} . |
54 | 1 | pfleura2 | |
55 | 1 | pfleura2 | ./Path.exe ${Job}.path &> ${Job}.out |
56 | 1 | pfleura2 | |
57 | 1 | pfleura2 |