From 18bce77a9baa50bbe485ce4a74e5b281aa7dcc8a Mon Sep 17 00:00:00 2001 From: "Paul A. Patience" Date: Wed, 11 Aug 2021 21:00:33 -0400 Subject: [PATCH 3/6] gnu: sundials-openmpi: Add HYPRE dependency. * gnu/packages/maths.scm (sundials): Remove TODO item obsoleted by this commit. (sundials-openmpi)[propagated-inputs]: Add hypre-openmpi. [arguments]<#:configure-flags>: Add -DHYPRE_ENABLE, -DHYPRE_INCLUDE_DIR and -DHYPRE_LIBRARY_DIR. --- gnu/packages/maths.scm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index d90cc94156..5195dd6180 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -5694,7 +5694,7 @@ and comparisons are supported.") (inputs `(("fortran" ,gfortran) ;for fcmix ("blas" ,openblas) - ("suitesparse" ,suitesparse))) ;TODO: Add hypre + ("suitesparse" ,suitesparse))) (arguments `(#:configure-flags `("-DEXAMPLES_ENABLE_C:BOOL=ON" "-DEXAMPLES_ENABLE_CXX:BOOL=ON" @@ -5723,12 +5723,21 @@ easily be incorporated into existing simulation codes.") (name "sundials-openmpi") (propagated-inputs `(("mpi" ,openmpi) - ("petsc" ,petsc-openmpi) ;support in SUNDIALS requires MPI + ;; Support for the below requires MPI. + ("hypre" ,hypre-openmpi) + ("petsc" ,petsc-openmpi) ,@(package-propagated-inputs sundials))) (arguments (substitute-keyword-arguments (package-arguments sundials) ((#:configure-flags flags '()) `(cons* "-DMPI_ENABLE:BOOL=ON" + "-DHYPRE_ENABLE:BOOL=ON" + (string-append "-DHYPRE_INCLUDE_DIR=" + (assoc-ref %build-inputs "hypre") + "/include") + (string-append "-DHYPRE_LIBRARY_DIR=" + (assoc-ref %build-inputs "hypre") + "/lib") "-DPETSC_ENABLE:BOOL=ON" (string-append "-DPETSC_INCLUDE_DIR=" (assoc-ref %build-inputs "petsc") -- 2.32.0