petsc trilinos: fix Scalapack via MKL (#3702)

* petsc trilinos: fix Scalapack via MKL

* indentation
This commit is contained in:
Denis Davydov
2017-04-05 21:55:28 +02:00
committed by Adam J. Stewart
parent aa63bc6f34
commit bccc73c6c9
2 changed files with 16 additions and 3 deletions

View File

@@ -292,14 +292,15 @@ def cmake_args(self):
# mumps / scalapack
if '+mumps' in spec:
scalapack = spec['scalapack'].libs
options.extend([
'-DTPL_ENABLE_MUMPS:BOOL=ON',
'-DMUMPS_LIBRARY_DIRS=%s' % spec['mumps'].prefix.lib,
# order is important!
'-DMUMPS_LIBRARY_NAMES=dmumps;mumps_common;pord',
'-DTPL_ENABLE_SCALAPACK:BOOL=ON',
# FIXME: for MKL it's mkl_scalapack_lp64;mkl_blacs_mpich_lp64
'-DSCALAPACK_LIBRARY_NAMES=scalapack'
'-DSCALAPACK_LIBRARY_NAMES=%s' % ';'.join(scalapack.names),
'-DSCALAPACK_LIBRARY_DIRS=%s' % ';'.join(scalapack.directories)
])
# see
# https://github.com/trilinos/Trilinos/blob/master/packages/amesos/README-MUMPS