all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi.
@ 2018-09-24 10:32 Paul Garlick
  2018-09-24 12:33 ` Ludovic Courtès
  2018-09-25 13:14 ` Eric Bavier
  0 siblings, 2 replies; 11+ messages in thread
From: Paul Garlick @ 2018-09-24 10:32 UTC (permalink / raw)
  To: 32818; +Cc: Paul Garlick

* gnu/packages/maths.scm (petsc-mumps-openmpi): New variable.
---
 gnu/packages/maths.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 736bac1..b2fff54 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -1724,6 +1724,48 @@ scientific applications modeled by partial differential equations.")
            ,@(delete "--with-mpi=0" ,cf)))))
     (synopsis "Library to solve PDEs (with complex scalars and MPI support)")))
 
+(define-public petsc-mumps-openmpi
+  (package (inherit petsc-openmpi)
+    (name "petsc-mumps-openmpi")
+    (inputs
+     `(("metis" ,metis)
+       ("mumps" ,mumps-openmpi)
+       ("scalapack" ,scalapack)
+       ("scotch" ,pt-scotch)
+       ,@(package-inputs petsc-openmpi)))
+    (arguments
+     (substitute-keyword-arguments (package-arguments petsc-openmpi)
+       ((#:configure-flags cf)
+        ``(,(string-append "--with-metis-include="
+                           (assoc-ref %build-inputs "metis") "/include")
+           ,(string-append "--with-metis-lib="
+                           (assoc-ref %build-inputs "metis") "/lib/"
+                           "libmetis.so")
+           ,(string-append "--with-mumps-include="
+                           (assoc-ref %build-inputs "mumps") "/include")
+           ,(string-append "--with-mumps-lib=["
+                           (assoc-ref %build-inputs "mumps") "/lib/"
+                           "libdmumps.a,"
+                           "libzmumps.a,"
+                           "libsmumps.a,"
+                           "libcmumps.a,"
+                           "libmumps_common.a,"
+                           "libpord.a]")
+           ,(string-append "--with-scalapack-lib="
+                           (assoc-ref %build-inputs "scalapack") "/lib/"
+                           "libscalapack.so")
+           ,(string-append "--with-ptscotch-include="
+                           (assoc-ref %build-inputs "scotch") "/include")
+           ,(string-append "--with-ptscotch-lib=["
+                           (assoc-ref %build-inputs "scotch") "/lib/"
+                           "libesmumps.a,"
+                           "libscotch.a,"
+                           "libscotcherr.a,"
+                           "libptesmumps.a,"
+                           "libptscotch.a,"
+                           "libptscotcherr.a]")
+           ,@,cf))))
+    (synopsis "Library to solve PDEs (with MUMPS and MPI support)")))
 
 (define-public python-kiwisolver
   (package
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-10-04 23:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-24 10:32 [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi Paul Garlick
2018-09-24 12:33 ` Ludovic Courtès
2018-09-24 16:09   ` Paul Garlick
2018-09-25 13:14 ` Eric Bavier
2018-09-25 13:40   ` Paul Garlick
2018-09-26  3:54     ` Eric Bavier
2018-09-26  9:08       ` Paul Garlick
2018-09-26 11:59         ` [bug#32818] [PATCH] gnu: petsc-openmpi: Configure with support for MUMPS solver Paul Garlick
2018-10-04 13:53           ` Paul Garlick
2018-10-04 23:08             ` bug#32818: " Leo Famulari
2018-09-25 15:28   ` [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi Paul Garlick

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.