-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare_aoforce.sh
executable file
·46 lines (37 loc) · 959 Bytes
/
prepare_aoforce.sh
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
#!/bin/bash
#
# This script prepares an AOFORCE calculation with TURBOMOLE.
#
# parameters:
SCRATCH="/work/michael"
MEMORY="64000"
# sets the memory for CPHF
if [ -f control ]; then
kdg maxcor
adg maxcor "$MEMORY MiB per_node"
fi
# links temporary files to scratch
# for lower symmetries
irreps=(a au ag b e)
# for higher symmetries
#irreps=(a au ag a1 a2 b1 b2 e eg eu t1 t2 t1g t2g t1u t2u h a1g a2g a1u a2u b1g b2g b1u b2u)
tmpfiles=(ddens dh)
symfiles=(vfile_ wfile_ rhs_ cphf_ g_sxi_ sxi_)
for file in ${!symfiles[@]}
do
rm -rf "$SCRATCH/${symfiles[$file]}_*"
for sym in ${!irreps[@]}
do
filename="${symfiles[$file]}${irreps[$sym]}"
rm -f "$SCRATCH/$filename"
touch "$SCRATCH/$filename"
ln -s "$SCRATCH/$filename" "$filename"
done
done
for file in ${!tmpfiles[@]}
do
filename="${tmpfiles[$file]}"
rm -f "$SCRATCH/$filename"
touch "$SCRATCH/$filename"
ln -s "$SCRATCH/$filename" "$filename"
done