diff --git a/src/config/oblas_ompcheck.sh b/src/config/oblas_ompcheck.sh index b668f743af..d965c3f272 100755 --- a/src/config/oblas_ompcheck.sh +++ b/src/config/oblas_ompcheck.sh @@ -9,10 +9,18 @@ mylog=/tmp/mylog.txt NWCHEM_TOP=$1 file_check=$NWCHEM_TOP/src/oblas_ompcheck_done.txt if [ -f $file_check ]; then - echo $file_check present >> $mylog +# echo $file_check present >> $mylog cat $file_check exit 0 fi +echo BLASOPT is $BLASOPT >> $mylog +if [[ -z "${BLASOPT}" ]]; then + echo BLASOPT is empty >> $mylog + echo 0 > $NWCHEM_TOP/src/oblas_ompcheck_done.txt + exit 0 +else + echo BLASOPT is not empty @$BLASOPT@ >> $mylog +fi #extract oblas_dir & oblas_name from BLASOPT # oblas_dir=$(echo $BLASOPT | awk 'sub(/.*-L */,""){f=1} f{if ( sub(/ * .*/,"") ) f=0; print}')