-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_leo.sh
More file actions
36 lines (31 loc) · 967 Bytes
/
Copy pathrun_leo.sh
File metadata and controls
36 lines (31 loc) · 967 Bytes
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
#!/bin/bash
# Runs all noncollinear 4-state VASP calculations.
# Execute with: nohup bash run_leo.sh &
#
# Walks: {m}x{n}/Gd*_Gd*/J*_bath*/{uu,dd,ud,du}/
ROOTDIR="/home/aditya/GdI2_Jzz/Jzz_var"
STATES="uu dd ud du"
cd "$ROOTDIR"
for scdir in [0-9]*x[0-9]*/; do
scdir="${scdir%/}"
echo "======== Supercell: $scdir ========"
for pairdir in ${scdir}/Gd*_Gd*/; do
pairdir="${pairdir%/}"
for topdir in ${pairdir}/J*_bath*/; do
topdir="${topdir%/}"
for state in $STATES; do
dir="${topdir}/${state}"
if [ ! -d "$dir" ]; then
echo "WARNING: $dir not found, skipping."
continue
fi
echo "Running: $dir"
cd "$ROOTDIR/$dir"
cp "$ROOTDIR/job.sh" .
sbatch job.sh
cd "$ROOTDIR"
done
done
done
done
echo "All calculations submitted."