Skip to content

Commit

Permalink
Remove commented line and fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
appolloford committed Dec 18, 2023
1 parent 0db52c7 commit d3e9e53
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions easybuild/easyblocks/p/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,33 +254,21 @@ def configure_step(self):
ss_libs = ["UMFPACK", "KLU", "CHOLMOD", "BTF", "CCOLAMD", "COLAMD", "CAMD", "AMD"]
# More libraries added after version 3.17
if LooseVersion(self.version) >= LooseVersion("3.17"):
# specified order of libs matters!
# ss_libs = ["UMFPACK", "KLU", "SPQR", "CHOLMOD", "BTF", "CCOLAMD",
# "COLAMD", "CSparse", "CXSparse", "LDL", "RBio",
# "SLIP_LU", "CAMD", "AMD"]

ss_libs = ["UMFPACK", "KLU", "SPQR", "CHOLMOD", "BTF", "CCOLAMD",
"COLAMD", "CXSparse", "LDL", "RBio",
"SLIP_LU", "CAMD", "AMD"]

"COLAMD", "CXSparse", "LDL", "RBio", "SLIP_LU", "CAMD", "AMD"]

# suitesparse_inc = [os.path.join(suitesparse, x, "Include")
# for x in ss_libs]
# suitesparse_inc.append(os.path.join(suitesparse, "SuiteSparse_config"))
suitesparse_inc = [os.path.join(suitesparse, "include")]
inc_spec = "-include=[%s]" % ','.join(suitesparse_inc)
suitesparse_inc = os.path.join(suitesparse, "include")
inc_spec = "-include=[%s]" % suitesparse_inc

# suitesparse_libs = [os.path.join(suitesparse, x, "Lib", "lib%s.a" % x.replace("_", "").lower())
# for x in ss_libs]
# suitesparse_libs.append(os.path.join(suitesparse, "SuiteSparse_config", "libsuitesparseconfig.a"))
suitesparse_libs = [os.path.join(suitesparse, "lib", "lib%s.so" % x.replace("_", "").lower()) for x in ss_libs]
suitesparse_libs = [os.path.join(suitesparse, "lib", "lib%s.so" % x.replace("_", "").lower())
for x in ss_libs]
lib_spec = "-lib=[%s]" % ','.join(suitesparse_libs)
else:
# CHOLMOD and UMFPACK are part of SuiteSparse (PETSc < 3.5)
withdep = "--with-umfpack"
inc_spec = "-include=%s" % os.path.join(suitesparse, "UMFPACK", "Include")
inc_spec = "-include=%s" % os.path.join(suitesparse, "include")
# specified order of libs matters!
umfpack_libs = [os.path.join(suitesparse, x, "Lib", "lib%s.a" % x.lower())
umfpack_libs = [os.path.join(suitesparse, "lib", "lib%s.a" % x.lower())
for x in ["UMFPACK", "CHOLMOD", "COLAMD", "AMD"]]
lib_spec = "-lib=[%s]" % ','.join(umfpack_libs)

Expand Down

0 comments on commit d3e9e53

Please sign in to comment.