Subversion Repositories slepc-dev

Rev

Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 808 Rev 912
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)