[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/14] gnu: Add MUMPS.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH 10/14] gnu: Add MUMPS. |
Date: |
Sun, 28 Jun 2015 22:12:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
address@hidden skribis:
> From: Eric Bavier <address@hidden>
>
> * gnu/packages/maths.scm (mumps, mumps-metis, mumps-openmpi)
> (mumps-metis-openmpi): New variables.
> * gnu/packages/patches/mumps-build-parallelism.patch: New patch.
> * gnu-system.am (dist_patch_DATA): Add it.
ISTR that some time ago MUMPS included obfuscated code; I assume this is
no longer the case?
> + (zero? (system* "make" "all"
> + (format #f "-j~a" (current-processor-count))))))
Rather ‘parallel-job-count’.
> + (lambda* (#:key (exec-prefix '()) #:allow-other-keys)
> + (with-directory-excursion "examples"
> + (use-modules (srfi srfi-1))
> + (every
> + (lambda (prec type)
> + (use-modules (ice-9 popen))
Local ‘use-modules’ forms are not very nice (it’s not documented.)
Rather use:
#:modules ((srfi srfi-1)
(ice-9 popen)
,@%gnu-build-system-modules)
> + (let ((tester (apply open-pipe*
> + `(,OPEN_WRITE
> + ,@exec-prefix
> + ,(string-append "./" prec
> + "simpletest"))))
> + (input (open-input-file
> + (string-append "input_simpletest_" type))))
> + (begin
> + (dump-port input tester)
> + (close-port input)
> + (zero? (close-pipe tester)))))
> + '("s" "d" "c" "z")
> + '("real" "real" "cmplx" "cmplx")))))
Please add a comment saying that this does, to appease the reader. ;-)
> + (license license:public-domain)))
I think it’s CeCILL-C, see
<http://mumps.enseeiht.fr/index.php?page=dwnld>.
OK with these changes!
Thanks,
Ludo’.
- Re: [PATCH 06/14] gnu: scotch, pt-scotch: Build esmumps libraries., (continued)
- [PATCH 08/14] gnu: Add p4est., ericbavier, 2015/06/27
- [PATCH 13/14] gnu: Add SLEPc., ericbavier, 2015/06/27
- [PATCH 12/14] gnu: Add arpack-ng-openmpi., ericbavier, 2015/06/27
- [PATCH 11/14] gnu: petsc: Upgrade to 3.6.0., ericbavier, 2015/06/27
- [PATCH 10/14] gnu: Add MUMPS., ericbavier, 2015/06/27
- Re: [PATCH 10/14] gnu: Add MUMPS.,
Ludovic Courtès <=
- [PATCH 09/14] gnu: Add METIS., ericbavier, 2015/06/27
- [PATCH 14/14] gnu: Add deal.II., ericbavier, 2015/06/27