guix-patches
[Top][All Lists]
Advanced

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

[bug#50080] [PATCH v2 3/4] gnu: sundials-openmpi: Add HYPRE dependency.


From: Paul A. Patience
Subject: [bug#50080] [PATCH v2 3/4] gnu: sundials-openmpi: Add HYPRE dependency.
Date: Thu, 28 Apr 2022 17:11:30 +0000

* gnu/packages/maths.scm (sundials-openmpi)[propagated-inputs]: Add
hypre-openmpi.
[arguments]<#:configure-flags>: Add -DENABLE_HYPRE, -DHYPRE_INCLUDE_DIR
and -DHYPRE_LIBRARY_DIR.
---
 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 f44cd49354..546c77d750 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -6167,12 +6167,19 @@ (define-public sundials-openmpi
     (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"))
--
2.36.0







reply via email to

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