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
parent
3e34b01b70
commit
5f83f95210
|
@ -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)")))
|
||||||
|
|
Reference in New Issue