me
/
guix
Archived
1
0
Fork 0

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>
Paul A. Patience 2022-05-02 13:28:46 +00:00 committed by Ludovic Courtès
parent 0d3c2c9543
commit 4c509a73b7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 8 additions and 1 deletions

View File

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