File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11EXEC /xxx/abacus
2- CHECKACCURACY 1.0e-2
3- NUMBEROFPROCESS 1
2+ CHECKACCURACY 2
3+ NUMBEROFPROCESS 4
Original file line number Diff line number Diff line change @@ -6,13 +6,18 @@ check_out(){
66 outfile=$1
77 worddir=` awk ' {print $1}' $outfile `
88 for word in $worddir ; do
9+ # serach result.out and get information
910 cal=` grep " $word " $outfile | awk ' {printf "%.' $CA ' f\n",$2}' `
11+ # search result.ref and get information
1012 ref=` grep " $word " result.ref | awk ' {printf "%.' $CA ' f\n",$2}' `
13+ # compute the error between 'cal' and 'ref'
1114 error=` awk ' BEGIN {x=' $ref ' ;y=' $cal ' ;printf "%.' $CA ' f\n",x-y}' `
15+ # compare the total time
1216 if [ $word == " totaltimeref" ]; then
1317 echo " $word this-test: $cal ref-1core-test: $ref "
1418 break
1519 fi
20+ # except the total time, other comparison may lead to 'wrong' results
1621 if [ $( echo " $error == 0" | bc) = 0 ]; then
1722 echo " ----------Wrong!----------"
1823 echo " word cal ref error"
You can’t perform that action at this time.
0 commit comments