guix-commits
[Top][All Lists]
Advanced

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

04/10: gnu: sundials-openmpi: Add HYPRE dependency.


From: guix-commits
Subject: 04/10: gnu: sundials-openmpi: Add HYPRE dependency.
Date: Tue, 3 May 2022 12:03:32 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 4c509a73b7aaf1416749f027c2e86a54347ad2b1
Author: Paul A. Patience <paul@apatience.com>
AuthorDate: Mon May 2 13:28:46 2022 +0000

    gnu: sundials-openmpi: Add HYPRE dependency.
    
    * gnu/packages/maths.scm (sundials-openmpi)[propagated-inputs]: Add
    hypre-openmpi.
    [arguments]<#:configure-flags>: Add -DENABLE_HYPRE, -DHYPRE_INCLUDE_DIR
    and -DHYPRE_LIBRARY_DIR.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/maths.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 5d4778da83..03c465dfff 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6175,12 +6175,19 @@ easily be incorporated into existing simulation codes.")
     (propagated-inputs
      (list openmpi
            ;; Support for the below requires MPI.
-           ;; TODO: Add HYPRE.
+           hypre-openmpi
            petsc-openmpi))
     (arguments
      (substitute-keyword-arguments (package-arguments sundials)
        ((#:configure-flags flags '())
         `(cons* "-DENABLE_MPI:BOOL=ON"
+                "-DENABLE_HYPRE:BOOL=ON"
+                (string-append "-DHYPRE_INCLUDE_DIR="
+                               (assoc-ref %build-inputs "hypre-openmpi")
+                               "/include")
+                (string-append "-DHYPRE_LIBRARY_DIR="
+                               (assoc-ref %build-inputs "hypre-openmpi")
+                               "/lib")
                 "-DENABLE_PETSC:BOOL=ON"
                 (string-append "-DPETSC_DIR="
                                (assoc-ref %build-inputs "petsc-openmpi"))



reply via email to

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