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>
parent
0d3c2c9543
commit
4c509a73b7
|
@ -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"))
|
||||
|
|
Reference in New Issue