root / examples / Vasp / Serial / run_Path_PBS @ 12
Historique | Voir | Annoter | Télécharger (1,98 ko)
1 |
#PBS -S /bin/sh |
---|---|
2 |
#PBS -N PathSer0.02 |
3 |
#PBS -l nodes=1:Other |
4 |
#PBS -q OneL |
5 |
#PBS -o PathSer0.02.batch-log |
6 |
#PBS -j oe |
7 |
#PBS -M Paul.Fleurat-Lessard@ens-lyon.fr |
8 |
#PBS -m aeb |
9 |
|
10 |
|
11 |
#!/bin/bash |
12 |
|
13 |
home_dir=$PBS_O_WORKDIR |
14 |
work_dir=$PBS_O_WORKDIR |
15 |
Job=Test_Vasp_Serial |
16 |
numb=run1 |
17 |
|
18 |
###################################### |
19 |
# |
20 |
# you might have to change the following variables |
21 |
# |
22 |
###################################### |
23 |
# |
24 |
# Where is Path.exe ?? |
25 |
# |
26 |
PathExe=~/Programs/optnpath/src/Path.exe |
27 |
# |
28 |
# Where is VASP ? |
29 |
# |
30 |
export VASP=/home/dloffred/VASP_SOURCES/Intel_P4/VASP46_CINEB |
31 |
# |
32 |
# Whre is mpirun ? |
33 |
# |
34 |
export MPIRUN=/usr/local/mpich-intel-090404/bin/mpirun |
35 |
# |
36 |
# Some libraries... |
37 |
# |
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 |
|
51 |
################################# |
52 |
# |
53 |
# We create the machinefile |
54 |
# |
55 |
# even if it is not really needed for SERIAL calculations |
56 |
# |
57 |
################################# |
58 |
nodes=`cat $PBS_NODEFILE` |
59 |
nnodes=`wc $PBS_NODEFILE | awk '{print $1}'` |
60 |
|
61 |
confile=$home_dir/ip.$PBS_JOBID.conf |
62 |
touch $confile |
63 |
j="init" |
64 |
for i in $nodes |
65 |
do |
66 |
if [ $j != $i ] |
67 |
then echo "$i:1" >> $confile |
68 |
else |
69 |
echo "vous calculez sur des noeuds smp" |
70 |
fi |
71 |
j=$i |
72 |
done |
73 |
|
74 |
############################# |
75 |
# |
76 |
# We create the 'VaspExe' file that Path will use to run the |
77 |
# actual VASP calculations of E and forces |
78 |
# |
79 |
############################# |
80 |
cd $work_dir |
81 |
echo "$MPIRUN -nolocal -machinefile $confile -np $nnodes $VASP > out_$numb" > ./RunVasp |
82 |
chmod u+x ./RunVasp |
83 |
|
84 |
############################### |
85 |
# |
86 |
# We launch PATH |
87 |
# |
88 |
############################### |
89 |
ln -s ${PathExe} . |
90 |
|
91 |
./Path.exe ${Job}.path &> ${Job}.out |
92 |
|