| Line 2... |
Line 2... |
import sys
|
import sys
|
|
|
from check import *
|
import petscconf
|
|
import check
|
|
|
def checkBlzpack(conf,directory,libs,scalar,precision,uniprocessor):
|
def Check(conf,directory,libs):
|
|
|
if scalar == 'complex':
|
if petscconf.SCALAR == 'complex':
|
sys.exit('ERROR: BLZPACK does not support complex numbers.')
|
sys.exit('ERROR: BLZPACK does not support complex numbers.')
|
|
|
if precision == 'double':
|
if petscconf.PRECISION == 'double':
|
functions = ['blzdrd']
|
functions = ['blzdrd']
|
else:
|
else:
|
functions = ['blzdrs']
|
functions = ['blzdrs']
|
|
|
if libs:
|
if libs:
|
| Line 19... |
Line 20... |
libs = [['-lblzpack']]
|
libs = [['-lblzpack']]
|
|
|
if directory:
|
if directory:
|
dirs = [directory]
|
dirs = [directory]
|
else:
|
else:
|
dirs = generateGuesses('Blzpack')
|
dirs = check.GenerateGuesses('Blzpack')
|
|
|
return checkFortranLib(conf,'BLZPACK',dirs,libs,functions)
|
return check.FortranLib(conf,'BLZPACK',dirs,libs,functions)
|
|
|
|
|