diff options
author | Melven Roehrig-Zoellner <Melven.Roehrig-Zoellner@DLR.de> | 2021-09-21 15:13:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-21 07:13:35 -0600 |
commit | c24413a530ee4cddc630d79aa67fada7d82a86e5 (patch) | |
tree | 2c592e7b98dcf9382c79ee5cd7c069e15c6d3969 | |
parent | 544b3f447d6b3f4093dd1d4f8c1847be10e2024d (diff) | |
download | spack-c24413a530ee4cddc630d79aa67fada7d82a86e5.tar.gz spack-c24413a530ee4cddc630d79aa67fada7d82a86e5.tar.bz2 spack-c24413a530ee4cddc630d79aa67fada7d82a86e5.tar.xz spack-c24413a530ee4cddc630d79aa67fada7d82a86e5.zip |
petsc: fix for enabling openmp (#25942)
* petsc: fix for enabling openmp
* petsc: shorten comment (style guidelines)
* petsc: move flag to make code more clear
-rw-r--r-- | var/spack/repos/builtin/packages/petsc/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py index 01bcc57e15..738d8b73d7 100644 --- a/var/spack/repos/builtin/packages/petsc/package.py +++ b/var/spack/repos/builtin/packages/petsc/package.py @@ -356,6 +356,7 @@ class Petsc(Package, CudaPackage, ROCmPackage): 'complex' if '+complex' in spec else 'real'), '--with-shared-libraries=%s' % ('1' if '+shared' in spec else '0'), '--with-debugging=%s' % ('1' if '+debug' in spec else '0'), + '--with-openmp=%s' % ('1' if '+openmp' in spec else '0'), '--with-64-bit-indices=%s' % ('1' if '+int64' in spec else '0') ]) if '+debug' not in spec: @@ -421,7 +422,6 @@ class Petsc(Package, CudaPackage, ROCmPackage): ('netcdf-c', 'netcdf', True, True), ('parallel-netcdf', 'pnetcdf', True, True), ('moab', 'moab', False, False), - 'openmp', ('random123', 'random123', False, False), 'exodusii', 'cgns', |