quantum-espresso: fix for scalapack with openmpi (#17179)

This commit is contained in:
Nichols A. Romero 2020-06-24 09:30:00 -05:00 committed by GitHub
parent 577a88880e
commit ec58f28c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,13 @@ def install(self, spec, prefix):
options.append('BLAS_LIBS={0}'.format(lapack_blas.ld_flags))
if '+scalapack' in spec:
scalapack_option = 'intel' if '^mkl' in spec else 'yes'
if '^mkl' in spec:
if '^openmpi' in spec:
scalapack_option = 'yes'
else: # mpich, intel-mpi
scalapack_option = 'intel'
else:
scalapack_option = 'yes'
options.append('--with-scalapack={0}'.format(scalapack_option))
if '+elpa' in spec: