@@ -37,6 +37,7 @@ deepks_out_labels=`grep deepks_out_labels INPUT | awk '{print $2}' | sed s/[[:sp
3737deepks_bandgap=` grep deepks_bandgap INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
3838has_lowf=` grep out_wfc_lcao INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
3939has_wfc_r=` grep out_wfc_r INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
40+ has_wfc_pw=` grep out_wfc_pw INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
4041out_dm=` grep out_dm INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
4142out_mul=` grep out_mul INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
4243gamma_only=` grep gamma_only INPUT | awk ' {print $2}' | sed s/[[:space:]]//g`
@@ -135,6 +136,27 @@ if ! test -z "$has_wfc_r" && [ $has_wfc_r -eq 1 ]; then
135136 done
136137fi
137138
139+ # echo "$has_wfc_pw" ## test out_wfc_pw > 0
140+ if ! test -z " $has_wfc_pw " && [ $has_wfc_pw -eq 1 ]; then
141+ if [[ ! -f OUT.autotest/WAVEFUNC1.txt ]]; then
142+ echo " Can't find file OUT.autotest/WAVEFUNC1.txt"
143+ exit 1
144+ fi
145+ awk ' BEGIN {max=0;read=0;band=1}
146+ {
147+ if(read==0 && $2 == "Band" && $3 == band){read=1}
148+ else if(read==1 && $2 == "Band" && $3 == band)
149+ {printf"Max_wfc_%d %.4f\n",band,max;read =0;band+=1;max=0}
150+ else if(read==1)
151+ {
152+ for(i=1;i<=NF;i++)
153+ {
154+ if(sqrt($i*$i)>max) {max=sqrt($i*$i)}
155+ }
156+ }
157+ }' OUT.autotest/WAVEFUNC1.txt >> $1
158+ fi
159+
138160# echo "$has_lowf" ## test out_wfc_lcao > 0
139161if ! test -z " $has_lowf " && [ $has_lowf -eq 1 ]; then
140162 if ! test -z " $gamma_only " && [ $gamma_only -eq 1 ]; then
0 commit comments