Major version extracted properly when Intel compiler is used

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@12935 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
spigafi 2016-09-09 13:02:56 +00:00
parent 3d761c6060
commit 924f0147d8
1 changed files with 1 additions and 2 deletions

View File

@ -145,8 +145,7 @@ case "$arch" in
#
if test "$ifort_version" != ""
then
version=`$mpif90 -V 2>&1 | grep Version |
sed 's/.*Version//' | | cut -d ' ' -f1`
version=`$mpif90 --version 2>&1 | grep "IFORT" | cut -d ' ' -f3`
f90_major_version=`echo $version | cut -d. -f1`
echo "${ECHO_T}ifort $f90_major_version"
f90_in_mpif90="ifort"