@@ -32,11 +32,11 @@ for i in `cat $allcase`;do
3232 encut=` grep " energy cutoff for wavefunc" ${i} /OUT.* /running* | awk ' {print $NF}' `
3333 kpt=` grep -A 1 " KPOINTS" ${i} /result.log | tail -1 | awk ' {print $2}' `
3434 nproc=` grep -A 1 " KPOINTS" ${i} /result.log | tail -1 | awk ' {print $3}' `
35- niter=` sed -n ' /ITER ETOT(eV)/,/><><><><>/ ' p ${i} /result.log | wc -l | awk ' {print $1-2 }' `
35+ niter=` grep " ELEC= " $i /OUT. * /running * | awk -F " = " ' {print $3} ' | awk -F " - " ' END {print $1}' `
3636 tottime=` awk ' $1=="total"{printf"%.2f", $2}' ${i} /result.log`
37- scf1=` grep -A 1 " ITER ETOT(eV) " ${i} /result.log | awk ' END {printf"%.2f", $NF}' `
37+ scf1=` awk ' {if($1 ~ /^CG1$|^DAV1$|^GE1$|^GV1$/) {printf"%.2f", $NF}} ' ${i} /result.log `
3838 totalscf=` awk ' $2=="Run"{print $3}' ${i} /result.log`
39- scfpiter=` awk -v a= $totalscf -v b= $scf1 -v c= $niter ' BEGIN{printf"%.2f",(a-b )/(c -1)}' `
39+ scfpiter=` awk ' BEGIN{printf"%.2f",(ARGV[1]-ARGV[2] )/(ARGV[3] -1)}' $totalscf $scf1 $niter `
4040 # fft=`awk '$2=="FFT3D"{printf"%.1f",$6}' ${i}/result.log`
4141 hpsi=` awk ' $2=="h_psi"{printf"%.1f",$6}' ${i} /result.log`
4242 vloc=` awk ' $2=="vloc"{printf"%.1f",$6}' ${i} /result.log`
@@ -51,11 +51,11 @@ for i in `cat $allcase`;do
5151 encut=` grep " energy cutoff for wavefunc" ${i} /OUT.* /running* | awk ' {print $NF}' `
5252 kpt=` grep -A 1 " KPOINTS" ${i} /result.log | tail -1 | awk ' {print $2}' `
5353 nproc=` grep -A 1 " KPOINTS" ${i} /result.log | tail -1 | awk ' {print $3}' `
54- niter=` sed -n ' /ITER ETOT(eV)/,/><><><><>/ ' p ${i} /result.log | wc -l | awk ' {print $1-2 }' `
54+ niter=` grep " ELEC= " $i /OUT. * /running * | awk -F " = " ' {print $3} ' | awk -F " - " ' END {print $1}' `
5555 tottime=` awk ' $1=="total"{printf"%.2f", $2}' ${i} /result.log`
56- scf1=` grep -A 1 " ITER ETOT(eV) " ${i} /result.log | awk ' END {printf"%.2f", $NF}' `
57- totalscf=` awk ' $1 =="Run"{print $3}' ${i} /result.log`
58- scfpiter=` awk -v a= $totalscf -v b= $scf1 -v c= $niter ' BEGIN{printf"%.2f",(a-b )/(c -1)}' `
56+ scf1=` awk ' {if($1 ~ /^CG1$|^DAV1$|^GE1$|^GV1$/) {printf"%.2f", $NF}} ' ${i} /result.log `
57+ totalscf=` awk ' $2 =="Run"{print $3}' ${i} /result.log`
58+ scfpiter=` awk ' BEGIN{printf"%.2f",(ARGV[1]-ARGV[2] )/(ARGV[3] -1)}' $totalscf $scf1 $niter `
5959 # fft="-"
6060 hpsi=" -"
6161 vloc=` awk ' $2=="vlocal"{printf"%.1f",$6}' ${i} /result.log`
@@ -71,6 +71,23 @@ for i in `cat $allcase`;do
7171 fi
7272 maxres=` grep " Maximum resident set size" ${i} /time.log | awk ' {print $NF}' `
7373
74+ if [[ $solver == " " ]]; then solver=" -" ; fi
75+ if [[ $natoms == " " ]]; then natoms=" -" ; fi
76+ if [[ $encut == " " ]]; then encut=" -" ; fi
77+ if [[ $kpt == " " ]]; then kpt=" -" ; fi
78+ if [[ $nproc == " " ]]; then nproc=" -" ; fi
79+ if [[ $niter == " " ]]; then niter=" -" ; fi
80+ if [[ $tottime == " " ]]; then tottime=" -" ; fi
81+ if [[ $scf1 == " " ]]; then scf1=" -" ; fi
82+ if [[ $scfpiter == " " ]]; then scfpiter=" -" ; fi
83+ if [[ $sc == " " ]]; then sc=" -" ; fi
84+ if [[ $hpsi == " " ]]; then hpsi=" -" ; fi
85+ if [[ $vloc == " " ]]; then vloc=" -" ; fi
86+ if [[ $vnl == " " ]]; then vnl=" -" ; fi
87+ if [[ $stress == " " ]]; then stress=" -" ; fi
88+ if [[ $force == " " ]]; then force=" -" ; fi
89+ if [[ $maxres == " " ]]; then maxres=" -" ; fi
90+
7491 printf " %20s %15s %7s %8s %8s %6s %6s %8s %8s %8s %8s %8s %8s %8s %8s %8s %s\n" \
7592 $i $solver $natoms $encut $kpt $nproc $niter $tottime $scf1 $scfpiter $sc $hpsi $vloc $vnl \
7693 $stress $force $maxres >> $outf
0 commit comments