refe="134.8382"
startene=`grep ETOT $file|head -1| awk '{print $2*1.0}'`
echo "initial energy=${startene} reference=${refe}"
if [ `echo "a=${startene}-(${refe});if(0>a)a*=-1;a>0.01"|bc -l` != "0" ]; then
echo 'difference ' `echo "a=${startene}-${refe};if(0>a)a*=-1;a"|bc -l` "from reference etot ${refe} greater than 0.01"
refe="134.8382"
startene=`grep ETOT $file|head -1| awk '{print $2*1.0}'`
echo "initial energy=${startene} reference=${refe}"
if [ `echo "a=${startene}-(${refe});if(0>a)a*=-1;a>0.01"|bc -l` != "0" ]; then
echo 'difference ' `echo "a=${startene}-${refe};if(0>a)a*=-1;a"|bc -l` "from reference etot ${refe} greater than 0.01"