0%

对不收敛vasp结果将CONTCAR改为POSCAR继续计算bash脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
for i in *;
do
#如果i是文件夹则打开i
if [ -d $i ];then
cd $i
if grep -q "to POSCAR and continue" vasp.out;then
pwd
mv CONTCAR POSCAR
sbatch -N 2 ~/bin/vasp_std.slurm
#若结果收敛则输出数字0
else
echo 0
fi
fi
done