gnu: petsc-openmpi: Configure with support for MUMPS solver.
* gnu/packages/maths.scm (petsc-openmpi)[inputs]: Add metis, mumps-openmpi, scalapack and pt-scotch. [arguments]: Add "--with-PACKAGENAME=1" flags. Move 'mpi-setup' phase ahead of 'configure' phase. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
d8b042326d
commit
9e2aa70bad
|
@ -1702,13 +1702,21 @@ scientific applications modeled by partial differential equations.")
|
||||||
(package (inherit petsc)
|
(package (inherit petsc)
|
||||||
(name "petsc-openmpi")
|
(name "petsc-openmpi")
|
||||||
(inputs
|
(inputs
|
||||||
`(("openmpi" ,openmpi)
|
`(("hdf5" ,hdf5-parallel-openmpi)
|
||||||
("hdf5" ,hdf5-parallel-openmpi)
|
("metis" ,metis)
|
||||||
|
("mumps" ,mumps-openmpi)
|
||||||
|
("openmpi" ,openmpi)
|
||||||
|
("scalapack" ,scalapack)
|
||||||
|
("scotch" ,pt-scotch)
|
||||||
,@(package-inputs petsc)))
|
,@(package-inputs petsc)))
|
||||||
(arguments
|
(arguments
|
||||||
(substitute-keyword-arguments (package-arguments petsc)
|
(substitute-keyword-arguments (package-arguments petsc)
|
||||||
((#:configure-flags cf)
|
((#:configure-flags cf)
|
||||||
``("--with-mpiexec=mpirun"
|
``("--with-mpiexec=mpirun"
|
||||||
|
"--with-metis=1"
|
||||||
|
"--with-mumps=1"
|
||||||
|
"--with-scalapack=1"
|
||||||
|
"--with-ptscotch=1"
|
||||||
,(string-append "--with-mpi-dir="
|
,(string-append "--with-mpi-dir="
|
||||||
(assoc-ref %build-inputs "openmpi"))
|
(assoc-ref %build-inputs "openmpi"))
|
||||||
,(string-append "--with-hdf5-include="
|
,(string-append "--with-hdf5-include="
|
||||||
|
@ -1718,9 +1726,9 @@ scientific applications modeled by partial differential equations.")
|
||||||
,@(delete "--with-mpi=0" ,cf)))
|
,@(delete "--with-mpi=0" ,cf)))
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
(add-before 'check 'mpi-setup
|
(add-before 'configure 'mpi-setup
|
||||||
,%openmpi-setup)))))
|
,%openmpi-setup)))))
|
||||||
(synopsis "Library to solve PDEs (with MPI support)")))
|
(synopsis "Library to solve PDEs (with MUMPS and MPI support)")))
|
||||||
|
|
||||||
(define-public petsc-complex-openmpi
|
(define-public petsc-complex-openmpi
|
||||||
(package (inherit petsc-complex)
|
(package (inherit petsc-complex)
|
||||||
|
@ -1737,7 +1745,6 @@ scientific applications modeled by partial differential equations.")
|
||||||
,@(delete "--with-mpi=0" ,cf)))))
|
,@(delete "--with-mpi=0" ,cf)))))
|
||||||
(synopsis "Library to solve PDEs (with complex scalars and MPI support)")))
|
(synopsis "Library to solve PDEs (with complex scalars and MPI support)")))
|
||||||
|
|
||||||
|
|
||||||
(define-public python-kiwisolver
|
(define-public python-kiwisolver
|
||||||
(package
|
(package
|
||||||
(name "python-kiwisolver")
|
(name "python-kiwisolver")
|
||||||
|
|
Loading…
Reference in New Issue