me
/
guix
Archived
1
0
Fork 0

gnu: petsc-openmpi: Fix compilation with Scotch 7.0.

* gnu/packages/maths.scm (petsc-openmpi)[inputs]: Add SCOTCH:METIS.
[arguments]: Add 'adjust-pt-scotch-library-names' phase.
master
Ludovic Courtès 2022-03-18 11:58:28 +01:00 committed by Ludovic Courtès
parent 3e34b01b70
commit 5f83f95210
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 0 deletions

View File

@ -3092,6 +3092,7 @@ scientific applications modeled by partial differential equations.")
("openmpi" ,openmpi) ("openmpi" ,openmpi)
("scalapack" ,scalapack) ("scalapack" ,scalapack)
("scotch" ,pt-scotch32) ("scotch" ,pt-scotch32)
("scotch" ,pt-scotch32 "metis")
,@(package-inputs petsc))) ,@(package-inputs petsc)))
(arguments (arguments
(substitute-keyword-arguments (package-arguments petsc) (substitute-keyword-arguments (package-arguments petsc)
@ -3111,6 +3112,12 @@ scientific applications modeled by partial differential equations.")
,@(delete "--with-mpi=0" #$cf))) ,@(delete "--with-mpi=0" #$cf)))
((#:phases phases) ((#:phases phases)
#~(modify-phases #$phases #~(modify-phases #$phases
(add-before 'configure 'adjust-pt-scotch-library-names
(lambda _
;; Adjust to the library name changes in Scotch 7.0.
(substitute* "config/BuildSystem/config/packages/PTScotch.py"
(("libptesmumps") "libesmumps")
(("libptscotchparmetis") "libptscotchparmetisv3"))))
(add-before 'configure 'mpi-setup (add-before 'configure 'mpi-setup
#$%openmpi-setup))))) #$%openmpi-setup)))))
(synopsis "Library to solve PDEs (with MUMPS and MPI support)"))) (synopsis "Library to solve PDEs (with MUMPS and MPI support)")))