-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexec_vasp_run_for_DFPT.sh
More file actions
27 lines (24 loc) · 921 Bytes
/
Copy pathexec_vasp_run_for_DFPT.sh
File metadata and controls
27 lines (24 loc) · 921 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
#!/bin/bash -l
#export PATH="/home/arjun/Softwares/vasp.6.2/bin:$PATH"
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/include/hdf5-1.8.12/lib
ml intel-oneapi-compilers/2022.2.1 intel-oneapi-mpi/2021.1.1
ml vasp/6.3.2
export OMP_NUM_THREADS=1
folders=$(find . -maxdepth 1 -type d ! -name '.')
for folder in $folders; do
cd "$folder" || { echo "Failed to enter directory $folder"; continue; }
if [[ $(basename "$folder") == "vasp_input" || $(basename "$folder") == "figures" ]]; then
echo "vasp run not expected in $folder as dir. contains just input files for vasp DFPT/static run"
else
pwd
cp "../vasp_input/INCAR" "INCAR"
cp "../vasp_input/KPOINTS" "KPOINTS"
mv POSCAR POSCAR-unitcell
phonopy -d --dim 2 2 2 -c POSCAR-unitcell
phonopy -d --dim 1 1 1 --pa auto -c SPOSCAR
mv SPOSCAR POSCAR
mpirun -np 64 vasp_std
fi
cd ..
done
echo "Job done"