forked from qzhang62/vasp_analysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathErrorDetect.sh
More file actions
executable file
·39 lines (39 loc) · 1.48 KB
/
Copy pathErrorDetect.sh
File metadata and controls
executable file
·39 lines (39 loc) · 1.48 KB
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
source ~/vaspkit/vaspkit_library.sh
if [ `isVASPFolder` == 'n' ];then # tell whether this is a VASP folder
echo "This is not a VASP folder"
exit 0
fi
if [ `hasResult` == 'n' ]; then # tell whether this folder has VASP Results
echo "No results yet"
exit 0
fi
#----------------error: WARNING: Sub-Space-Matrix is not hermitian in DAV---------------------------
err="WARNING: Sub-Space-Matrix is not hermitian in DAV"
out=`grep -m 1 "$err" pbs_out`
if [ ! -z "$out" ];then
echo "error: WARNING: Sub-Space-Matrix is not hermitian in DAV"
fi
#---------------Not converge even once--------------------------------------------------------------
err="1 F="
out1=`grep -m 1 "$err" OSZICAR-`
if [ -z "$out1" ];then
echo "the running does not converge even once"
fi
#---------------Reach the Maximum NELM step---------------------------------------------------------
temp=`grep "NELM " INCAR | awk '{print $3}'`
out2=`cat pbs_out | awk '{print $2}' | grep -m 1 "$temp"`
if [ ! -z "$out2" ];then
echo "reached maximum NELM step"
fi
#---------------very serious problems---------------------------------------------------------------
err="very serious problems"
out3=`grep -m 1 "$err" pbs_out`
if [ ! -z "$out3" ];then
echo "encouter very serious problems"
fi
#--------------------WARNING in EDDRMM-------------------------------------
err="WARNING in EDDRMM: call to ZHEGV failed"
out4=`grep -m 1 "$err" pbs_out`
if [ ! -z "$out4" ];then
echo "WARNING in EDDRMM: call to ZHEGV failed"
fi