gfortran-9 needed for tblite

This commit is contained in:
edoapra 2022-04-06 18:23:21 -07:00
parent 058803a8f3
commit 489269c467
No known key found for this signature in database
GPG key ID: 472C4EBB4F3AEDFA
2 changed files with 13 additions and 1 deletions

View file

@ -46,7 +46,7 @@ jobs:
mpi_impl: openmpi
armci_network: MPI-TS
nwchem_modules: "xtb"
fc: gfortran
fc: gfortran-9
blas: "build_openblas"
use_tblite: 1
- os: ubuntu-18.04

View file

@ -86,6 +86,18 @@ fi
if [[ ! -z "$BUILD_OPENBLAS" ]] ; then
BLASOPT="-L`pwd`/../lib -lnwc_openblas"
fi
if [[ `${FC} -dM -E - < /dev/null 2> /dev/null | grep -c GNU` > 0 ]] ; then
let GCCVERSIONGT8=$(expr `${FC} -dumpversion | cut -f1 -d.` \> 8)
fi
# check gfortran version
if [[ ${GCCVERSIONGT8} != 1 ]]; then
echo
echo you have gfortran version $(${FC} -dumpversion | cut -f1 -d.)
echo gcc version 9 and later needed for tblite
echo
exit 1
fi
cd tblite
rm -rf _build