petsc trilinos: fix Scalapack via MKL (#3702)
* petsc trilinos: fix Scalapack via MKL * indentation
This commit is contained in:

committed by
Adam J. Stewart

parent
aa63bc6f34
commit
bccc73c6c9
@@ -173,9 +173,21 @@ def install(self, spec, prefix):
|
||||
'--with-blas-lapack-lib=%s' % lapack_blas.joined()
|
||||
])
|
||||
|
||||
# Help PETSc pick up Scalapack from MKL:
|
||||
if 'scalapack' in spec:
|
||||
scalapack = spec['scalapack'].libs
|
||||
options.extend([
|
||||
'--with-scalapack-lib=%s' % scalapack.joined(),
|
||||
'--with-scalapack=1'
|
||||
])
|
||||
else:
|
||||
options.extend([
|
||||
'--with-scalapack=0'
|
||||
])
|
||||
|
||||
# Activates library support if needed
|
||||
for library in ('metis', 'boost', 'hdf5', 'hypre', 'parmetis',
|
||||
'mumps', 'scalapack'):
|
||||
'mumps'):
|
||||
options.append(
|
||||
'--with-{library}={value}'.format(
|
||||
library=library, value=('1' if library in spec else '0'))
|
||||
|
Reference in New Issue
Block a user