Skip to content

Commit

Permalink
merge with 5.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoldeman committed Feb 7, 2024
1 parent 1fcfc02 commit 26c9348
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions easybuild/easyblocks/p/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ def configure_step(self):
ss_libs = ["UMFPACK", "KLU", "SPQR", "CHOLMOD", "BTF", "CCOLAMD",
"COLAMD", "CXSparse", "LDL", "RBio", "SLIP_LU", "CAMD", "AMD"]

# SLIP_LU was replaced by SPEX in SuiteSparse >= 6.0
if LooseVersion(get_software_version('SuiteSparse')) >= LooseVersion("6.0"):
ss_libs = [x if x != "SLIP_LU" else "SPEX" for x in ss_libs]

suitesparse_inc = os.path.join(suitesparse, "include")
inc_spec = "-include=[%s]" % suitesparse_inc

Expand All @@ -274,8 +278,9 @@ def configure_step(self):
self.cfg.update('configopts', ' '.join([withdep + spec for spec in ['=1', inc_spec, lib_spec]]))

# set PETSC_DIR for configure (env) and build_step
env.setvar('PETSC_DIR', self.cfg['start_dir'])
self.cfg.update('buildopts', 'PETSC_DIR=%s' % self.cfg['start_dir'])
petsc_dir = self.cfg['start_dir'].rstrip(os.path.sep)
env.setvar('PETSC_DIR', petsc_dir)
self.cfg.update('buildopts', 'PETSC_DIR=%s' % petsc_dir)

if self.cfg['sourceinstall']:
if self.petsc_arch:
Expand Down

0 comments on commit 26c9348

Please sign in to comment.