Skip to content

Commit

Permalink
fix link order in PETSc easyblock for SCOTCH >= 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Jan 5, 2024
1 parent de4e716 commit f7c3e01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions easybuild/easyblocks/p/petsc.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ def configure_step(self):
inc_spec = "-include=[%s]" % ','.join(scotch_inc)

# For some reason there is a v3 suffix added to libptscotchparmetis
# which is the reason for this new code.
req_scotch_libs = ['libesmumps.a', 'libptesmumps.a', 'libptscotch.a',
'libptscotcherr.a', 'libptscotchparmetisv3.a', 'libscotch.a',
'libscotcherr.a']
# which is the reason for this new code;
# note: order matters here, don't sort these alphabetically!
req_scotch_libs = ['libptesmumps.a', 'libptscotchparmetisv3.a', 'libptscotch.a',
'libptscotcherr.a', 'libesmumps.a', 'libscotch.a', 'libscotcherr.a']
scotch_libs = [os.path.join(scotch, "lib", x) for x in req_scotch_libs]
lib_spec = "-lib=[%s]" % ','.join(scotch_libs)
self.cfg.update('configopts', ' '.join([withdep + spec for spec in ['=1', inc_spec, lib_spec]]))
Expand Down

0 comments on commit f7c3e01

Please sign in to comment.