X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=blobdiff_plain;f=ctest%2Fprota_unres_energy_check.sh;fp=ctest%2Fprota_unres_energy_check.sh;h=a4185c5cc69dd9762e8cb41461e4b0f904bb75a2;hp=c6e52b32e5c92909b71c33779612271632aa07a0;hb=428260002283b6a07500e4b81c4182423fd2f26e;hpb=5464a69bec1071f24a02d91a6c4483c3ace66c04 diff --git a/ctest/prota_unres_energy_check.sh b/ctest/prota_unres_energy_check.sh index c6e52b3..a4185c5 100755 --- a/ctest/prota_unres_energy_check.sh +++ b/ctest/prota_unres_energy_check.sh @@ -203,13 +203,13 @@ elif [ "$1" == "1ei0_min" ]; then # exit 1 fi -elif [ "$1" == "prota_CHECKGRAD" ]; then - diff=`awk -f checkgrad.awk $file |grep 'Largest abs(numerical/analytical)='|awk '{printf "%15.10f",$3}'` - awk -f checkgrad.awk $file +elif [ "$1" == "prota_CHECKGRAD" ] || [ "$1" == "1DKZcut-checkgrad" ]; then + diff=`gawk -f checkgrad.awk $file |grep 'Largest abs(1-numerical/analytical)='|awk '{printf "%15.10f",$3}'` + gawk -f checkgrad.awk $file - if [ `echo "a=${diff};a>0.0001"|bc -l` != "0" ]; then + if [ `echo "a=${diff};a>0.0002"|bc -l` != "0" ]; then echo 'ERROR largest abs(numerical/analytical)' ${diff} - echo ' greater than 0.0001' + echo ' greater than 0.0002' exit 1 else exit 0