unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Garlick <pgarlick@tourbillion-technology.com>
To: 32818@debbugs.gnu.org
Cc: Paul Garlick <pgarlick@tourbillion-technology.com>
Subject: [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi.
Date: Mon, 24 Sep 2018 11:32:44 +0100	[thread overview]
Message-ID: <1537785164-18606-1-git-send-email-pgarlick@tourbillion-technology.com> (raw)

* 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

             reply	other threads:[~2018-09-24 10:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-24 10:32 Paul Garlick [this message]
2018-09-24 12:33 ` [bug#32818] [PATCH] gnu: Add petsc-mumps-openmpi 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1537785164-18606-1-git-send-email-pgarlick@tourbillion-technology.com \
    --to=pgarlick@tourbillion-technology.com \
    --cc=32818@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).