diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2022-03-18 11:58:28 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-03-18 16:03:32 +0100 |
commit | 5f83f9521048394fb2d07229754a39b951177c0f (patch) | |
tree | eb1bb2bb91632ac9f76285f982c0a34120826268 /gnu | |
parent | 3e34b01b70fe4b919757c6f6d02a27c870d440c9 (diff) |
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.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/maths.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 7b43a8cbe8..8e287a8055 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -3092,6 +3092,7 @@ scientific applications modeled by partial differential equations.") ("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 @@ scientific applications modeled by partial differential equations.") ,@(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)"))) |