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