From 4c509a73b7aaf1416749f027c2e86a54347ad2b1 Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Mon, 2 May 2022 13:28:46 +0000 Subject: gnu: sundials-openmpi: Add HYPRE dependency. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- 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")) -- cgit v1.2.3