| Line 11... |
Line 11... |
|
|
if petscconf.PRECISION == 'single':
|
if petscconf.PRECISION == 'single':
|
sys.exit('ERROR: PRIMME does not support single precision.')
|
sys.exit('ERROR: PRIMME does not support single precision.')
|
|
|
if not directory:
|
if not directory:
|
sys.exit('ERROR: I cannot guess where is PRIMME directory.')
|
sys.exit('ERROR: I cannot guess where the PRIMME directory is.')
|
|
|
functions = ['primme_set_method','primme_Free','primme_initialize']
|
functions = ['primme_set_method','primme_Free','primme_initialize']
|
if petscconf.SCALAR == 'real':
|
if petscconf.SCALAR == 'real':
|
functions += ['dprimme']
|
functions += ['dprimme']
|
include = 'DPRIMME'
|
include = 'DPRIMME'
|
| Line 35... |
Line 35... |
conf.write('PRIMME_FLAGS =' + str.join(' ', flags) + '\n')
|
conf.write('PRIMME_FLAGS =' + str.join(' ', flags) + '\n')
|
else:
|
else:
|
sys.exit('ERROR: PRIMME link test failed.')
|
sys.exit('ERROR: PRIMME link test failed.')
|
|
|
return flags + libs
|
return flags + libs
|
|
|
|
|
|
|