forked from HPCNow/SubmitScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
orca_ompi_work.sub
48 lines (39 loc) · 1.01 KB
/
orca_ompi_work.sub
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
#!/bin/bash
####################################################
# To use this script execute next instruccion
#
# qsub orca_ompi_work.sub name_of_input (without extention)
#
#
####################################################
#$ -S /bin/bash
#
# name of job
#$ -N orca_ompi ### job name flag
#$ -e orca_ompi.err ### sge error file
#$ -o orca_ompi.out ### sge output file
####
#### Select the cluster where you want to run your job iqtc01.q, iqtc02.q & iqtc03.q ####
#$ -q iqtc01.q
#$ -cwd
#$ -m e
####
#### change this mail to recive an alert amil when the job finishes ########
#$ -M [email protected]
#
#
##### Emember that in iqtc01.q the maximum is 4 cores/node ans iqtc02.q & iqtc03.q is 8 cores/node
#$ -pe ompi 4
source /etc/profile
. /etc/profile.d/modules.sh
cwd=$PWD
module load orca/ompi_r1730
cp $1.inp $TMPDIR/
mkdir $WORK/$1_DIR
cd $WORK/$1_DIR
cp -r $TMPDIR/* .
/aplic/orca/orca_amd64_exe_r1730/orca $1.inp > $1.out
mkdir -p $cwd/$1_out
cp -r * $cwd/$1_out/
cd $cwd/$1_out/
rm -r $WORK/$1_DIR