-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob_yambo_gw
68 lines (44 loc) · 1.56 KB
/
job_yambo_gw
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
63
64
65
66
67
68
#!/bin/bash
#SBATCH --job-name=hBN_GW
#SBATCH --time=10:00:00
#SBATCH --nodes=8
#SBATCH --ntasks-per-node=48
#SBATCH --cpus-per-task=1
#SBATCH --mem=384000
#SBATCH --account=ACCOUNT
#SBATCH --mail-user=EMAIL@gmail.com
#SBATCH --mail-type=END
#SBATCH --error=error.txt
#SBATCH --output=output.txt
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
export MV2_ENABLE_AFFINITY=0
export I_MPI_PIN_DOMAIN=auto
export I_MPI_PIN_ORDER=bunch
export KMP_AFFINITY=compact,granularity=fine,1
module load espresso
PPN=$(( $SLURM_NTASKS_PER_NODE * $SLURM_JOB_NUM_NODES ))
echo "number of MPI processes = $PPN"
echo "number of OpenMP threads = $OMP_NUM_THREADS"
### Yambo G0W0
mpirun -np $PPN yambo -F yambo_gw.in
# G1W1
mv SAVE SAVE_G0W0
mkdir SAVE
cp SAVE_G0W0/ns.* SAVE/
yambo
sed 's%XfnQPdb= "none"%XfnQPdb= "E < SAVE_G0W0/ndb.QP"%;s%GfnQPdb= "none"%GfnQPdb= "E < SAVE_G0W0/ndb.QP"%' yambo_gw.in > yambo_g1w1.in
mpirun -np $PPN yambo -F yambo_g1w1.in
# G2W2
mv SAVE SAVE_G1W1
mkdir SAVE
cp SAVE_G1W1/ns.* SAVE/
yambo
sed 's%XfnQPdb= "E < SAVE_G0W0/ndb.QP"%XfnQPdb= "E < SAVE_G1W1/ndb.QP"%;s%GfnQPdb= "E < SAVE_G0W0/ndb.QP"%GfnQPdb= "E < SAVE_G1W1/ndb.QP"%' yambo_g1w1.in > yambo_g2w2.in
mpirun -np $PPN yambo -F yambo_g2w2.in
# G3W3
mv SAVE SAVE_G2W2
mkdir SAVE
cp SAVE_G2W2/ns.* SAVE/
yambo
sed 's%XfnQPdb= "E < SAVE_G1W1/ndb.QP"%XfnQPdb= "E < SAVE_G2W2/ndb.QP"%;s%GfnQPdb= "E < SAVE_G1W1/ndb.QP"%GfnQPdb= "E < SAVE_G2W2/ndb.QP"%' yambo_g2w2.in > yambo_g3w3.in
mpirun -np $PPN yambo -F yambo_g3w3.in