petsc: fix for enabling openmp (#25942)

* petsc: fix for enabling openmp

* petsc: shorten comment (style guidelines)

* petsc: move flag to make code more clear
This commit is contained in:
Melven Roehrig-Zoellner 2021-09-21 15:13:35 +02:00 committed by GitHub
parent 544b3f447d
commit c24413a530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,6 +356,7 @@ def install(self, spec, prefix):
'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 @@ def install(self, spec, prefix):
('netcdf-c', 'netcdf', True, True),
('parallel-netcdf', 'pnetcdf', True, True),
('moab', 'moab', False, False),
'openmp',
('random123', 'random123', False, False),
'exodusii',
'cgns',