From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: [PATCH 08/14] gnu: Add p4est. Date: Sat, 27 Jun 2015 22:45:45 -0500 Message-ID: <1435463151-32099-9-git-send-email-ericbavier@openmailbox.org> References: <1435463151-32099-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z93Wh-0001Cn-Tx for guix-devel@gnu.org; Sat, 27 Jun 2015 23:45:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z93Wd-0003iU-W8 for guix-devel@gnu.org; Sat, 27 Jun 2015 23:45:03 -0400 Received: from smtp28.openmailbox.org ([62.4.1.62]:34059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z93Wd-0003iG-QI for guix-devel@gnu.org; Sat, 27 Jun 2015 23:44:59 -0400 In-Reply-To: <1435463151-32099-1-git-send-email-ericbavier@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: Eric Bavier From: Eric Bavier * gnu/packages/maths.scm (p4est, p4est-openmpi): New variables. --- gnu/packages/maths.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index b67ae9c..3852311 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -928,6 +928,52 @@ bio-chemistry.") (lambda _ (zero? (system* "make" "ptcheck")))))))) (synopsis "Programs and libraries for graph algorithms (with MPI)"))) +(define-public p4est + (package + (name "p4est") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (string-append "http://p4est.github.io/release/p4est-" + version ".tar.gz")) + (sha256 + (base32 + "0faina2h5qsx3m2izbzaj9bbakma1krbbjmq43wrp1hcbyijflqb")))) + (build-system gnu-build-system) + (inputs + `(("fortran" ,gfortran) + ("blas" ,openblas) + ("lapack" ,lapack) + ("zlib" ,zlib))) + (arguments + `(#:configure-flags `(,(string-append "BLAS_LIBS=-L" + (assoc-ref %build-inputs "blas") + " -lopenblas") + ,(string-append "LAPACK_LIBS=-L" + (assoc-ref %build-inputs "lapack") + " -llapack")))) + (home-page "http://www.p4est.org") + (synopsis "AMR on Forests of Octrees") + (description + "The p4est software library enables the dynamic management of a +collection of adaptive octrees, conveniently called a forest of octrees. +p4est is designed to work in parallel and scales to hundreds of thousands of +processor cores.") + (license license:gpl2+))) + +(define-public p4est-openmpi + (package (inherit p4est) + (name "p4est-openmpi") + (inputs + `(("mpi" ,openmpi) + ,@(package-inputs p4est))) + (arguments + (substitute-keyword-arguments (package-arguments p4est) + ((#:configure-flags cf) + ``("--enable-mpi" ,@,cf)))) + (synopsis "Parallel AMR on Forests of Octrees"))) + (define-public gsegrafix (package (name "gsegrafix") -- 2.2.1