fixed some testing scripts to run with the new installation

This commit is contained in:
Martin Diehl 2014-01-27 15:09:38 +00:00
parent 1ffa5599a8
commit 36812cd6ea
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,14 @@ for option in ['IMKL_ROOT','ACML_ROOT','LAPACK_ROOT','FFTW_ROOT','F90']:
if value is None: value = '' # env not set
options[option]=value
for arg in enumerate(sys.argv):
for option in ['IMKL_ROOT','ACML_ROOT','LAPACK_ROOT','FFTW_ROOT','F90']:
if arg.startswith(option):
if arg.endswith(option):
options[option] = sys.argv[i+1].upper()
else:
options[option] = sys.argv[i][17:].upper()
compilers = ['ifort','gfortran']
if options['F90'] not in compilers:
sys.exit('compiler "F90" (in installation/options or as Shell variable) has to be one out of: %s'%(', '.join(compilers)))