mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-16 19:57:39 -05:00
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.
This commit is contained in:
parent
3e34b01b70
commit
5f83f95210
1 changed files with 7 additions and 0 deletions
|
@ -3092,6 +3092,7 @@ (define-public petsc-openmpi
|
|||
("openmpi" ,openmpi)
|
||||
("scalapack" ,scalapack)
|
||||
("scotch" ,pt-scotch32)
|
||||
("scotch" ,pt-scotch32 "metis")
|
||||
,@(package-inputs petsc)))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments petsc)
|
||||
|
@ -3111,6 +3112,12 @@ (define-public petsc-openmpi
|
|||
,@(delete "--with-mpi=0" #$cf)))
|
||||
((#: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
|
||||
#$%openmpi-setup)))))
|
||||
(synopsis "Library to solve PDEs (with MUMPS and MPI support)")))
|
||||
|
|
Loading…
Reference in a new issue