guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/17: gnu: petsc-openmpi: Fix compilation with Scotch 7.0.


From: guix-commits
Subject: 01/17: gnu: petsc-openmpi: Fix compilation with Scotch 7.0.
Date: Fri, 18 Mar 2022 11:05:28 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 5f83f9521048394fb2d07229754a39b951177c0f
Author: Ludovic Courtès <ludovic.courtes@inria.fr>
AuthorDate: Fri Mar 18 11:58:28 2022 +0100

    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.
---
 gnu/packages/maths.scm | 7 +++++++
 1 file changed, 7 insertions(+)

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)")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]