mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: Add petsc-openmpi.
* gnu/packages/maths.scm (petsc-openmpi): New variable. (petsc-complex-openmpi): New variable.
This commit is contained in:
parent
10b11968c8
commit
d8c7eeb996
1 changed files with 35 additions and 0 deletions
|
@ -45,6 +45,7 @@ (define-module (gnu packages maths)
|
|||
#:use-module (gnu packages less)
|
||||
#:use-module (gnu packages xorg)
|
||||
#:use-module (gnu packages gl)
|
||||
#:use-module (gnu packages mpi)
|
||||
#:use-module (gnu packages multiprecision)
|
||||
#:use-module (gnu packages pcre)
|
||||
#:use-module (gnu packages perl)
|
||||
|
@ -473,6 +474,40 @@ (define-public petsc-complex
|
|||
(string-append (package-description petsc)
|
||||
" Complex scalar type version."))))
|
||||
|
||||
(define-public petsc-openmpi
|
||||
(package (inherit petsc)
|
||||
(name "petsc-openmpi")
|
||||
(inputs
|
||||
`(("openmpi" ,openmpi)
|
||||
,@(package-inputs petsc)))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments petsc)
|
||||
((#:configure-flags cf)
|
||||
``("--with-mpiexec=mpirun"
|
||||
,(string-append "--with-mpi-dir="
|
||||
(assoc-ref %build-inputs "openmpi"))
|
||||
,@(delete "--with-mpi=0" ,cf)))))
|
||||
(description
|
||||
(string-append (package-description petsc)
|
||||
" With OpenMPI parallelism support."))))
|
||||
|
||||
(define-public petsc-complex-openmpi
|
||||
(package (inherit petsc-complex)
|
||||
(name "petsc-complex-openmpi")
|
||||
(inputs
|
||||
`(("openmpi" ,openmpi)
|
||||
,@(package-inputs petsc-complex)))
|
||||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments petsc-complex)
|
||||
((#:configure-flags cf)
|
||||
``("--with-mpiexec=mpirun"
|
||||
,(string-append "--with-mpi-dir="
|
||||
(assoc-ref %build-inputs "openmpi"))
|
||||
,@(delete "--with-mpi=0" ,cf)))))
|
||||
(description
|
||||
(string-append (package-description petsc-complex)
|
||||
" With OpenMPI parallelism support."))))
|
||||
|
||||
(define-public superlu
|
||||
(package
|
||||
(name "superlu")
|
||||
|
|
Loading…
Reference in a new issue