2017-09-14 15:46:21 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-07-02 11:11:54 +00:00
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020, 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
|
2022-06-07 01:32:30 +00:00
|
|
|
;;; Copyright © 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2022-02-05 05:13:57 +00:00
|
|
|
;;; Copyright © 2022 Eric Bavier <bavier@posteo.net>
|
2022-01-28 14:39:23 +00:00
|
|
|
;;; Copyright © 2022 Liliana Marie Prikler <liliana.prikler@gmail.com>
|
2023-06-24 21:38:04 +00:00
|
|
|
;;; Copyright © 2023 Reza Housseini <reza@housseini.me>
|
2017-09-14 15:46:21 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages simulation)
|
|
|
|
#:use-module (gnu packages)
|
2018-11-12 16:00:40 +00:00
|
|
|
#:use-module (gnu packages algebra)
|
2020-08-19 12:03:52 +00:00
|
|
|
#:use-module (gnu packages admin)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages bash)
|
|
|
|
#:use-module (gnu packages bison)
|
|
|
|
#:use-module (gnu packages boost)
|
2018-11-12 16:00:36 +00:00
|
|
|
#:use-module (gnu packages check)
|
2018-11-12 16:00:40 +00:00
|
|
|
#:use-module (gnu packages cmake)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (gnu packages cpp)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages curl)
|
|
|
|
#:use-module (gnu packages engineering)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages flex)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (gnu packages fontutils)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages gettext)
|
|
|
|
#:use-module (gnu packages gcc)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (gnu packages geo)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages graphics)
|
|
|
|
#:use-module (gnu packages gtk)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (gnu packages image)
|
2022-12-03 09:43:01 +00:00
|
|
|
#:use-module (gnu packages iso-codes)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages image-processing)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages m4)
|
|
|
|
#:use-module (gnu packages maths)
|
|
|
|
#:use-module (gnu packages mpi)
|
|
|
|
#:use-module (gnu packages multiprecision)
|
|
|
|
#:use-module (gnu packages ncurses)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages pdf)
|
2018-11-12 16:00:40 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages pretty-print)
|
2022-12-03 09:43:01 +00:00
|
|
|
#:use-module (gnu packages protobuf)
|
2018-11-12 16:00:36 +00:00
|
|
|
#:use-module (gnu packages python)
|
2021-07-12 14:01:16 +00:00
|
|
|
#:use-module (gnu packages python-build)
|
2021-07-22 08:42:37 +00:00
|
|
|
#:use-module (gnu packages python-science)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 13:21:30 +00:00
|
|
|
#:use-module (gnu packages python-xyz)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages qt)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages readline)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages serialization)
|
|
|
|
#:use-module (gnu packages sqlite)
|
|
|
|
#:use-module (gnu packages ssh)
|
|
|
|
#:use-module (gnu packages textutils)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages version-control)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (gnu packages video)
|
2023-06-24 21:38:04 +00:00
|
|
|
#:use-module (gnu packages xiph)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (gnu packages xml)
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (guix download)
|
2022-06-07 01:32:30 +00:00
|
|
|
#:use-module (guix gexp)
|
2021-07-22 08:42:37 +00:00
|
|
|
#:use-module (guix git-download)
|
2020-08-19 12:03:52 +00:00
|
|
|
#:use-module (guix svn-download)
|
2018-11-12 16:00:40 +00:00
|
|
|
#:use-module (guix build-system cmake)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2022-10-17 19:44:31 +00:00
|
|
|
#:use-module (guix build-system pyproject)
|
2018-11-12 16:00:36 +00:00
|
|
|
#:use-module (guix build-system python)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages)
|
2022-01-28 14:39:23 +00:00
|
|
|
#:use-module (guix gexp)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (guix utils)
|
|
|
|
#:use-module (ice-9 ftw)
|
2023-08-10 20:19:55 +00:00
|
|
|
#:use-module (ice-9 match)
|
2017-09-14 15:46:21 +00:00
|
|
|
#:use-module (ice-9 regex)
|
|
|
|
#:use-module (srfi srfi-1))
|
|
|
|
|
2023-06-24 21:38:04 +00:00
|
|
|
(define-public openfoam-org
|
2017-09-14 15:46:21 +00:00
|
|
|
(package
|
2023-06-24 21:38:04 +00:00
|
|
|
(name "openfoam-org")
|
|
|
|
(version "10.20230119")
|
|
|
|
(source (origin
|
2023-08-10 20:19:55 +00:00
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url (string-append "https://github.com/OpenFOAM/OpenFOAM-"
|
|
|
|
(version-major version)))
|
|
|
|
(commit (second (string-split version #\.)))))
|
2023-06-24 21:38:04 +00:00
|
|
|
(sha256
|
|
|
|
(base32
|
2023-08-10 20:19:55 +00:00
|
|
|
"0icvwg7s6vnkgmdiczivia9pbrgx8nanw9a4j080fzfvdv9vxhzp"))
|
|
|
|
(file-name (git-file-name name version))
|
2023-06-24 21:38:04 +00:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet `(begin
|
|
|
|
;; patch shell paths
|
|
|
|
(substitute* (list "wmake/src/Makefile"
|
|
|
|
"wmake/makefiles/general")
|
|
|
|
(("/bin/sh")
|
|
|
|
"sh"))
|
|
|
|
(substitute* "etc/bashrc"
|
|
|
|
;; only go back one folder level
|
|
|
|
(("\\$\\(dirname \\$\\{BASH_SOURCE:-\\$0\\}\\)/../..")
|
|
|
|
"$(dirname ${BASH_SOURCE:-$0})/..")
|
|
|
|
;; do not use openfoam folder convention
|
|
|
|
(("^export WM_PROJECT_DIR=.*$")
|
|
|
|
(string-append
|
|
|
|
"export WM_PROJECT_DIR=$WM_PROJECT_INST_DIR\n"))
|
|
|
|
;; do not source bash_completion (gives error)
|
|
|
|
(("^.*bash_completion.*$" all)
|
|
|
|
(string-append "#" all))
|
|
|
|
;; set same version as guix package
|
|
|
|
(("^export WM_PROJECT_VERSION=.*$")
|
|
|
|
(string-append "export WM_PROJECT_VERSION="
|
|
|
|
,version "\n")))
|
|
|
|
;; add expand flag to RunFunctions
|
|
|
|
(substitute* "bin/tools/RunFunctions"
|
|
|
|
(("foamDictionary (.*)" all args)
|
|
|
|
(string-append "foamDictionary -expand " args)))
|
|
|
|
;; disable failing test
|
|
|
|
(substitute* "test/postProcessing/channel/Allrun"
|
|
|
|
(("^.*getApplication.*$" all)
|
|
|
|
(string-append "#" all "\n")))))))
|
2017-09-14 15:46:21 +00:00
|
|
|
(build-system gnu-build-system)
|
2023-06-24 21:38:04 +00:00
|
|
|
(inputs (list boost
|
|
|
|
cgal
|
|
|
|
git
|
|
|
|
gmp
|
|
|
|
libxt
|
|
|
|
metis
|
|
|
|
mpfr
|
|
|
|
ncurses
|
|
|
|
openmpi
|
|
|
|
openssh
|
|
|
|
paraview
|
|
|
|
pt-scotch32
|
|
|
|
readline
|
|
|
|
zlib))
|
|
|
|
(native-inputs (list bison
|
|
|
|
flex
|
|
|
|
;; paraview plugin dependencies
|
|
|
|
cli11
|
|
|
|
cmake-minimal
|
|
|
|
cgns
|
|
|
|
curl
|
|
|
|
double-conversion
|
|
|
|
eigen
|
|
|
|
expat
|
|
|
|
ffmpeg
|
|
|
|
fmt
|
|
|
|
freetype
|
|
|
|
gdal
|
|
|
|
gl2ps
|
|
|
|
glew
|
|
|
|
gmsh
|
|
|
|
hdf5
|
|
|
|
jsoncpp
|
|
|
|
libjpeg-turbo
|
|
|
|
libogg
|
|
|
|
libpng
|
|
|
|
libharu
|
|
|
|
libtheora
|
|
|
|
libtiff
|
|
|
|
libx11
|
|
|
|
libxml2
|
|
|
|
lz4
|
|
|
|
netcdf
|
|
|
|
nlohmann-json
|
|
|
|
proj
|
|
|
|
protobuf
|
|
|
|
pugixml
|
|
|
|
python
|
|
|
|
python-mpi4py
|
|
|
|
qtbase-5
|
|
|
|
qtsvg-5
|
|
|
|
qttools-5
|
|
|
|
qtwebengine-5
|
|
|
|
qtxmlpatterns
|
|
|
|
utfcpp
|
|
|
|
vtk
|
|
|
|
xz))
|
|
|
|
(propagated-inputs (list gnuplot))
|
|
|
|
(outputs '("debug" ;~60MB
|
2017-10-21 16:20:42 +00:00
|
|
|
"out"))
|
2017-09-14 15:46:21 +00:00
|
|
|
(arguments
|
2023-06-24 21:38:04 +00:00
|
|
|
(list
|
|
|
|
;; Executable files and shared libraries are located in the 'platforms'
|
|
|
|
;; subdirectory.
|
|
|
|
#:strip-directories
|
|
|
|
#~(list "share/OpenFOAM/platforms/linux64GccDPInt32Opt/bin"
|
|
|
|
"share/OpenFOAM/platforms/linux64GccDPInt32Opt/lib")
|
2017-09-14 15:46:21 +00:00
|
|
|
|
2023-06-24 21:38:04 +00:00
|
|
|
#:modules
|
|
|
|
'((ice-9 ftw)
|
|
|
|
(ice-9 regex)
|
|
|
|
(ice-9 string-fun)
|
|
|
|
(srfi srfi-1)
|
|
|
|
(guix build gnu-build-system)
|
|
|
|
(guix build utils))
|
2017-09-14 15:46:21 +00:00
|
|
|
|
2023-06-24 21:38:04 +00:00
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-before 'build 'patch-HOME-path
|
|
|
|
(lambda _
|
2023-08-10 20:19:55 +00:00
|
|
|
(setenv "HOME" "/tmp")))
|
|
|
|
(add-before 'build 'rename-self
|
|
|
|
(lambda _
|
|
|
|
;; The script 'bin/foamEtcFile' derives the version name based
|
|
|
|
;; on the current directory name (!), so make sure to follow the
|
|
|
|
;; expected naming convention.
|
|
|
|
(let ((here (canonicalize-path "."))
|
|
|
|
(target #$(string-append
|
|
|
|
"OpenFOAM-"
|
|
|
|
(string-map (match-lambda
|
|
|
|
(#\. #\-)
|
|
|
|
(chr chr))
|
|
|
|
(package-version this-package)))))
|
|
|
|
(chdir "..")
|
|
|
|
(format #t "renaming '~a' to '~a'~%"
|
|
|
|
here target)
|
|
|
|
(rename-file here target)
|
|
|
|
(chdir target))))
|
2023-06-24 21:38:04 +00:00
|
|
|
(add-before 'build 'patch-scotch
|
|
|
|
(lambda _
|
|
|
|
(substitute* "etc/config.sh/scotch"
|
|
|
|
(("^export SCOTCH_VERSION=scotch_.*$")
|
|
|
|
(string-append "export SCOTCH_VERSION=scotch_"
|
|
|
|
#$(package-version pt-scotch32) "\n"))
|
|
|
|
(("^export SCOTCH_ARCH_PATH=.*$")
|
|
|
|
(string-append "export SCOTCH_ARCH_PATH="
|
|
|
|
(assoc-ref %build-inputs "pt-scotch32")
|
|
|
|
"\n"))) #t))
|
|
|
|
(add-before 'build 'patch-mpi
|
|
|
|
(lambda _
|
|
|
|
(let* ((mpi-path (assoc-ref %build-inputs "openmpi"))
|
|
|
|
(mpi-version #$(package-version openmpi)))
|
|
|
|
;; specify openmpi type
|
|
|
|
(substitute* "etc/bashrc"
|
|
|
|
(("WM_MPLIB=SYSTEMOPENMPI")
|
|
|
|
"WM_MPLIB=OPENMPI"))
|
|
|
|
(substitute* "etc/config.sh/mpi"
|
|
|
|
(("export FOAM_MPI=openmpi-.*$")
|
|
|
|
(string-append "export FOAM_MPI=openmpi-"
|
|
|
|
mpi-version "\n"))
|
|
|
|
(("export MPI_ARCH_PATH=.*\\$FOAM_MPI.*$")
|
|
|
|
(string-append "export MPI_ARCH_PATH=" mpi-path
|
|
|
|
"\n")))) #t))
|
|
|
|
(add-before 'build 'patch-paraview
|
|
|
|
(lambda _
|
|
|
|
(substitute* "etc/config.sh/paraview"
|
|
|
|
(("^export ParaView_VERSION=.*$")
|
|
|
|
(string-append "export ParaView_VERSION="
|
|
|
|
#$(package-version paraview) "\n"))
|
|
|
|
(("^export ParaView_DIR=.*$")
|
|
|
|
(string-append "export ParaView_DIR="
|
|
|
|
(assoc-ref %build-inputs "paraview")
|
|
|
|
"\n"))) #t))
|
|
|
|
(add-before 'build 'add-rpaths
|
|
|
|
(lambda _
|
|
|
|
(letrec* ((libraries '("boost" "cgal"
|
|
|
|
"gmp"
|
|
|
|
"metis"
|
|
|
|
"mpfr"
|
|
|
|
"pt-scotch32"
|
|
|
|
"openmpi"
|
|
|
|
"zlib"
|
|
|
|
"paraview"))
|
|
|
|
(rpaths
|
|
|
|
(fold-right (lambda (library rpaths)
|
|
|
|
(string-append rpaths
|
|
|
|
"-rpath="
|
|
|
|
(assoc-ref
|
|
|
|
%build-inputs library)
|
|
|
|
"/lib,")) "" libraries))
|
|
|
|
(openfoam-lib
|
|
|
|
(string-append #$output
|
|
|
|
"/share/OpenFOAM/platforms/linux64GccDPInt32Opt/lib"))
|
|
|
|
(ldflags
|
|
|
|
(string-append "-Wl,"
|
|
|
|
rpaths
|
|
|
|
"-rpath="
|
|
|
|
openfoam-lib
|
|
|
|
","
|
|
|
|
"-rpath="
|
|
|
|
openfoam-lib
|
|
|
|
"/dummy,"
|
|
|
|
"-rpath="
|
|
|
|
openfoam-lib
|
|
|
|
"/paraview-"
|
|
|
|
#$(version-major+minor (package-version
|
|
|
|
paraview)))))
|
|
|
|
(substitute* "wmake/rules/linux64Gcc/c++"
|
|
|
|
(("\\$\\(LIB_HEADER_DIRS\\) -fPIC" all)
|
|
|
|
(string-append all " " ldflags)))) #t))
|
|
|
|
(add-before 'build 'add-vtk-include-path
|
|
|
|
(lambda _
|
|
|
|
(let* ((vtk-version #$(version-major+minor
|
|
|
|
(package-version vtk)))
|
|
|
|
(vtk-root (assoc-ref %build-inputs "vtk"))
|
|
|
|
(vtk-inc (string-append vtk-root "/include/vtk-" vtk-version))
|
|
|
|
(vtk-inc-flag (string-append "-I" vtk-inc)))
|
|
|
|
(substitute* "wmake/rules/linux64Gcc/c++"
|
|
|
|
(("\\$\\(LIB_HEADER_DIRS\\)" all)
|
|
|
|
(string-append all " " vtk-inc-flag " "))))
|
|
|
|
#t))
|
|
|
|
(delete 'configure) ;no configure phase
|
|
|
|
(replace 'build
|
|
|
|
(lambda _
|
|
|
|
;; compile OpenFOAM libraries and applications
|
|
|
|
(invoke "bash" "-c"
|
|
|
|
(format #f
|
|
|
|
"source ./etc/bashrc && ./Allwmake -j~a"
|
|
|
|
(parallel-job-count)))))
|
|
|
|
(add-after 'build 'cleanup
|
|
|
|
;; Avoid unnecessary, voluminous object and dep files.
|
|
|
|
(lambda _
|
|
|
|
(when (file-exists? "platforms/linux64GccDPInt32Opt/src")
|
|
|
|
(delete-file-recursively
|
|
|
|
"platforms/linux64GccDPInt32Opt/src"))
|
|
|
|
(when (file-exists?
|
|
|
|
"platforms/linux64GccDPInt32OptOPENMPI")
|
|
|
|
(delete-file-recursively
|
|
|
|
"platforms/linux64GccDPInt32OptOPENMPI"))
|
|
|
|
(for-each delete-file
|
|
|
|
(find-files "." "\\.o$")) #t))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(when (file-exists? "test")
|
|
|
|
(with-directory-excursion "test"
|
|
|
|
(invoke "bash" "-c"
|
|
|
|
(format #f
|
|
|
|
"source ../etc/bashrc && ./Allrun -j~a"
|
|
|
|
(parallel-job-count)))))
|
|
|
|
;; too many tutorials are failing
|
|
|
|
;; (with-directory-excursion "tutorials"
|
|
|
|
;; (invoke "bash" "-c" "source ../etc/bashrc && ./Alltest"))
|
|
|
|
) #t))
|
|
|
|
(replace 'install
|
|
|
|
(lambda _
|
|
|
|
(let ((install-dir (string-append #$output
|
|
|
|
"/share/OpenFOAM")))
|
|
|
|
(mkdir-p install-dir) ;create install directory
|
|
|
|
;; move contents of build directory to install directory
|
|
|
|
(copy-recursively "." install-dir))))
|
|
|
|
(add-after 'install 'add-symbolic-link
|
|
|
|
(lambda _
|
|
|
|
(let* ((bin (string-append #$output "/bin"))
|
|
|
|
(lib (string-append #$output "/lib"))
|
|
|
|
(openfoam (string-append #$output
|
|
|
|
"/share/OpenFOAM"))
|
|
|
|
(build-bin (string-append openfoam
|
|
|
|
"/platforms/linux64GccDPInt32Opt/bin"))
|
|
|
|
(build-lib (string-append openfoam
|
|
|
|
"/platforms/linux64GccDPInt32Opt/lib"))
|
|
|
|
(foam-bin (string-append openfoam "/bin")))
|
|
|
|
;; add symbolic links in standard 'bin' directory
|
|
|
|
(mkdir-p bin)
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(unless (member file
|
|
|
|
'("." ".."))
|
|
|
|
(symlink (string-append build-bin "/"
|
|
|
|
file)
|
|
|
|
(string-append bin "/" file))))
|
|
|
|
(scandir build-bin))
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(unless (member file
|
|
|
|
'("." ".."))
|
|
|
|
(symlink (string-append foam-bin "/"
|
|
|
|
file)
|
|
|
|
(string-append bin "/" file))))
|
|
|
|
(scandir foam-bin))
|
|
|
|
;; add symbolic link for standard 'lib' directory
|
|
|
|
(symlink build-lib lib)) #t)))))
|
|
|
|
(native-search-paths
|
|
|
|
(list (search-path-specification
|
|
|
|
(variable "WM_PROJECT_DIR")
|
|
|
|
(separator #f)
|
|
|
|
(files '("share/OpenFOAM")))))
|
2017-09-14 15:46:21 +00:00
|
|
|
;; Note:
|
2023-06-24 21:38:04 +00:00
|
|
|
;; Tutorial files are installed read-only in /gnu/store.
|
|
|
|
;; To allow write permissions on files copied from the store a
|
|
|
|
;; 'chmod' step is needed before running the applications. For
|
|
|
|
;; example, from a user's login:
|
|
|
|
;; $ source $(dirname $(which blockMesh))/../../../etc/bashrc
|
|
|
|
;; $ mkdir -p $FOAM_RUN
|
|
|
|
;; $ cd $FOAM_RUN
|
|
|
|
;; $ cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily .
|
|
|
|
;; $ cd pitzDaily
|
|
|
|
;; $ chmod -R u+w .
|
|
|
|
;; $ blockMesh
|
2017-09-14 15:46:21 +00:00
|
|
|
(synopsis "Framework for numerical simulation of fluid flow")
|
2023-06-24 21:38:04 +00:00
|
|
|
(description
|
|
|
|
"OpenFOAM provides a set of solvers and methods for tackling
|
2017-09-14 15:46:21 +00:00
|
|
|
problems in the field of Computational Fluid Dynamics (CFD). It is written in
|
|
|
|
C++. Governing equations such as the Navier-Stokes equations can be solved in
|
|
|
|
integral form. Physical processes such as phase change, droplet transport and
|
|
|
|
chemical reaction can be modelled. Numerical methods are included to deal with
|
|
|
|
sharp gradients, such as those encountered in flows with shock waves and flows
|
|
|
|
with gas/liquid interfaces. Large problems may be split into smaller, connected
|
2017-09-17 07:12:30 +00:00
|
|
|
problems for efficient solution on parallel systems.")
|
2017-09-14 15:46:21 +00:00
|
|
|
(license license:gpl3+)
|
|
|
|
(home-page "https://openfoam.org")))
|
2018-11-12 16:00:36 +00:00
|
|
|
|
2023-06-24 21:38:04 +00:00
|
|
|
(define-public openfoam
|
|
|
|
(deprecated-package "openfoam" openfoam-org))
|
|
|
|
|
2023-06-24 21:42:58 +00:00
|
|
|
(define-public openfoam-com
|
|
|
|
;; This is a fork of 'openfoam-org', maintained separately.
|
|
|
|
(package
|
|
|
|
(inherit openfoam-org)
|
|
|
|
(name "openfoam-com")
|
|
|
|
(version "2212")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "https://develop.openfoam.com"
|
|
|
|
"/Development/openfoam/-/archive/OpenFOAM-v"
|
|
|
|
version
|
|
|
|
"/openfoam-OpenFOAM-v"
|
|
|
|
version
|
|
|
|
".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0i9039hfz9gvgymkdjhjvvn5500zha3cpdbpqrzfrfi8lbz10is2"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet `(begin
|
|
|
|
(substitute* "etc/bashrc"
|
|
|
|
;; set same version as guix package
|
|
|
|
(("^export WM_PROJECT_VERSION=.*$")
|
|
|
|
(string-append "export WM_PROJECT_VERSION="
|
|
|
|
,version "\n")))
|
|
|
|
;; patch shell paths
|
|
|
|
(substitute* (list "src/OSspecific/POSIX/POSIX.C"
|
|
|
|
"wmake/src/Makefile"
|
|
|
|
"wmake/makefiles/general"
|
|
|
|
"wmake/makefiles/info")
|
|
|
|
(("/bin/sh")
|
|
|
|
"sh"))))))
|
|
|
|
(synopsis "Framework for numerical simulation of fluid flow (from openfoam.com)")
|
|
|
|
(home-page "https://www.openfoam.com")))
|
|
|
|
|
2022-12-03 08:16:28 +00:00
|
|
|
(define-public open-simulation-interface
|
|
|
|
(package
|
|
|
|
(name "open-simulation-interface")
|
|
|
|
(version "3.5.0")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url (string-append "https://github.com/"
|
|
|
|
"OpenSimulationInterface/"
|
|
|
|
"open-simulation-interface"))
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"09vclrvsawx608kk0vnzywr71xn11qzwxzh2j508zjfn0kvhyx7q"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments (list #:tests? #f ; tests are for the python package
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-cmake
|
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("-targets\\.cmake") "_targets.cmake")))))))
|
|
|
|
(native-inputs (list protobuf))
|
|
|
|
(home-page
|
|
|
|
"https://github.com/OpenSimulationInterface/open-simulation-interface")
|
|
|
|
(synopsis "Generic interface for environmental perception")
|
|
|
|
(description "The Open Simulation Interface is a generic interface based on
|
|
|
|
Google's protocol buffers for the environmental perception of automated driving
|
|
|
|
functions in virtual scenarios.")
|
|
|
|
(license license:mpl2.0)))
|
|
|
|
|
2022-12-03 08:16:38 +00:00
|
|
|
(define-public python-open-simulation-interface
|
|
|
|
(package/inherit open-simulation-interface
|
2023-07-17 08:08:18 +00:00
|
|
|
(name "python-open-simulation-interface")
|
2022-12-03 08:16:38 +00:00
|
|
|
(build-system python-build-system)
|
2023-07-17 08:08:18 +00:00
|
|
|
(arguments '())
|
|
|
|
(propagated-inputs
|
|
|
|
(list python-pyyaml
|
|
|
|
python-protobuf))))
|
2022-12-03 08:16:38 +00:00
|
|
|
|
2022-12-03 09:04:27 +00:00
|
|
|
(define-public esmini
|
|
|
|
(package
|
|
|
|
(name "esmini")
|
|
|
|
(version "2.27.1")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/esmini/esmini")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(patches (search-patches "esmini-use-pkgconfig.patch"
|
|
|
|
"esmini-no-clutter-log.patch"))
|
|
|
|
(modules '((guix build utils) (ice-9 ftw)))
|
|
|
|
(snippet
|
|
|
|
#~(with-directory-excursion "externals"
|
|
|
|
(for-each
|
|
|
|
(lambda (dir) (unless (member dir '("." ".." "expr"))
|
|
|
|
(delete-file-recursively dir)))
|
|
|
|
(scandir "."))))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"07ccydz7kxy5jc52f8fmxg4nkr1spshfnpzcv0wgd5lqz9ghjahz"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:configure-flags #~(list "-DDYN_PROTOBUF=TRUE")
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-cmake
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
(("\\$\\{CMAKE_HOME_DIRECTORY\\}/bin")
|
|
|
|
(string-append (assoc-ref outputs "out") "/bin")))
|
|
|
|
(substitute* "EnvironmentSimulator/CMakeLists.txt"
|
|
|
|
(("\\$\\{OSI_DIR\\}/(include|lib)(-dyn)?" all what)
|
|
|
|
(search-input-directory
|
|
|
|
inputs
|
|
|
|
(string-append what "/osi"
|
|
|
|
#$(version-major
|
|
|
|
(package-version
|
|
|
|
(this-package-input
|
|
|
|
"open-simulation-interface"))))))
|
|
|
|
(("\\$\\{SUMO_BASE_DIR\\}/\\$\\{EXT_DIR_NAME\\}")
|
|
|
|
#$(this-package-input "sumo")))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(with-directory-excursion "EnvironmentSimulator/Unittest/"
|
|
|
|
(for-each invoke (find-files "_test$")))))
|
|
|
|
(add-after 'install 'move-libraries
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
(mkdir-p (string-append out "/lib"))
|
|
|
|
(with-directory-excursion (string-append out "/bin")
|
|
|
|
(for-each
|
|
|
|
(lambda (f)
|
|
|
|
(rename-file f (string-append out "/lib/"
|
|
|
|
(basename f))))
|
|
|
|
(find-files "." "\\.so$")))))))))
|
|
|
|
(inputs (list mesa
|
|
|
|
openscenegraph `(,openscenegraph "pluginlib")
|
|
|
|
open-simulation-interface
|
|
|
|
protobuf pugixml sumo))
|
|
|
|
(native-inputs (list googletest pkg-config))
|
|
|
|
(home-page "https://github.com/esmini/esmini")
|
|
|
|
(synopsis "Basic OpenSCENARIO player")
|
|
|
|
(description "@command{esmini} is a tool to play OpenSCENARIO files.
|
|
|
|
It is provided as both a standalone application and a shared library and has
|
|
|
|
some support for generating and analysing traffic scenarios..")
|
|
|
|
(license license:mpl2.0)))
|
|
|
|
|
2018-11-12 16:00:36 +00:00
|
|
|
(define-public python-fenics-dijitso
|
|
|
|
(package
|
|
|
|
(name "python-fenics-dijitso")
|
2020-01-15 19:24:23 +00:00
|
|
|
(version "2019.1.0")
|
2018-11-12 16:00:36 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "fenics-dijitso" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-15 19:24:23 +00:00
|
|
|
"0lhqsq8ypdak0ahr2jnyvg07yrqp6wicjxi6k56zx24wp3qg60sc"))))
|
2018-11-12 16:00:36 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list openmpi python-numpy))
|
2018-11-12 16:00:36 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-pytest-cov))
|
2018-11-12 16:00:36 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-mpi4py))
|
2018-11-12 16:00:36 +00:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'build 'mpi-setup
|
|
|
|
,%openmpi-setup)
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
(with-directory-excursion "test"
|
2019-02-20 12:16:07 +00:00
|
|
|
;; Disable parallel tests to avoid race condition. See
|
|
|
|
;; https://github.com/pytest-dev/pytest-cov/issues/237.
|
|
|
|
(substitute* "runtests.sh"
|
|
|
|
(("for p in 1 4 8 16; do")
|
|
|
|
"for p in 1; do"))
|
2021-01-24 03:59:12 +00:00
|
|
|
(invoke "./runtests.sh")))))))
|
2018-11-12 16:00:36 +00:00
|
|
|
(home-page "https://bitbucket.org/fenics-project/dijitso/")
|
|
|
|
(synopsis "Distributed just-in-time building of shared libraries")
|
|
|
|
(description
|
|
|
|
"Dijitso provides a core component of the @code{FEniCS} framework,
|
|
|
|
namely the just-in-time compilation of C++ code that is generated from
|
|
|
|
Python modules. It is called from within a C++ library, using ctypes
|
|
|
|
to import the dynamic shared library directly.
|
|
|
|
|
|
|
|
As long as the compiled code can provide a simple factory function to
|
|
|
|
a class implementing a predefined C++ interface, there is no limit to
|
|
|
|
the complexity of that interface. Parallel support depends on the
|
|
|
|
@code{mpi4py} interface.")
|
|
|
|
(license license:lgpl3+)))
|
2018-11-12 16:00:37 +00:00
|
|
|
|
|
|
|
(define-public python-fenics-ufl
|
|
|
|
(package
|
|
|
|
(name "python-fenics-ufl")
|
2020-01-16 12:54:38 +00:00
|
|
|
(version "2019.1.0")
|
2018-11-12 16:00:37 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "fenics-ufl" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-16 12:54:38 +00:00
|
|
|
"10dz8x3lm68x2w3kkqcjask38h0zkhhak26jdbkppr8g9y8wny7p"))))
|
2018-11-12 16:00:37 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-numpy))
|
2018-11-12 16:00:37 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-pytest))
|
2018-11-12 16:00:37 +00:00
|
|
|
(arguments
|
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
2021-01-24 04:00:36 +00:00
|
|
|
(invoke "py.test" "test"))))))
|
2018-11-12 16:00:37 +00:00
|
|
|
(home-page "https://bitbucket.org/fenics-project/ufl/")
|
|
|
|
(synopsis "Unified language for form-compilers")
|
|
|
|
(description "The Unified Form Language (UFL) is a domain specific
|
|
|
|
language for declaration of finite element discretizations of
|
|
|
|
variational forms. More precisely, it defines a flexible interface
|
|
|
|
for choosing finite element spaces and defining expressions for weak
|
|
|
|
forms in a notation close to mathematical notation.
|
|
|
|
|
|
|
|
UFL is part of the FEniCS Project.")
|
|
|
|
(license license:lgpl3+)))
|
2018-11-12 16:00:38 +00:00
|
|
|
|
|
|
|
(define-public python-fenics-fiat
|
|
|
|
(package
|
|
|
|
(name "python-fenics-fiat")
|
2020-01-17 19:03:39 +00:00
|
|
|
(version "2019.1.0")
|
2018-11-12 16:00:38 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "fenics-fiat" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-17 19:03:39 +00:00
|
|
|
"13sc7lma3d2mh43an7i4kkdbbk4cmvxjk45wi43xnjd7qc38zg4b"))))
|
2018-11-12 16:00:38 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-pytest))
|
2018-11-12 16:00:38 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-numpy python-sympy))
|
2018-11-12 16:00:38 +00:00
|
|
|
(arguments
|
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "test"
|
2020-01-17 19:03:39 +00:00
|
|
|
;; FIXME: three FIAT test modules are known to fail
|
|
|
|
;; with recent versions of pytest (>= 4). These are
|
|
|
|
;; skipped for FIAT version 2019.1.0 pending an
|
|
|
|
;; upstream pull request. For details see request #59
|
|
|
|
;; at https://bitbucket.org/fenics-project/fiat/.
|
|
|
|
(invoke "py.test" "unit/"
|
|
|
|
"--ignore=unit/test_fiat.py"
|
|
|
|
"--ignore=unit/test_quadrature.py"
|
2021-01-24 04:01:50 +00:00
|
|
|
"--ignore=unit/test_reference_element.py")))))))
|
2018-11-12 16:00:38 +00:00
|
|
|
(home-page "https://bitbucket.org/fenics-project/fiat/")
|
|
|
|
(synopsis "Tabulation of finite element function spaces")
|
|
|
|
(description
|
|
|
|
"The FInite element Automatic Tabulator (FIAT) supports
|
|
|
|
generation of arbitrary order instances of the Lagrange elements on
|
|
|
|
lines, triangles, and tetrahedra. It is also capable of generating
|
|
|
|
arbitrary order instances of Jacobi-type quadrature rules on the same
|
|
|
|
element shapes. Further, H(div) and H(curl) conforming finite element
|
|
|
|
spaces such as the families of Raviart-Thomas, Brezzi-Douglas-Marini
|
|
|
|
and Nedelec are supported on triangles and tetrahedra. Upcoming
|
|
|
|
versions will also support Hermite and nonconforming elements.
|
|
|
|
|
|
|
|
FIAT is part of the FEniCS Project.")
|
|
|
|
(license license:lgpl3+)))
|
2018-11-12 16:00:39 +00:00
|
|
|
|
|
|
|
(define-public python-fenics-ffc
|
|
|
|
(package
|
|
|
|
(name "python-fenics-ffc")
|
2020-01-20 11:21:24 +00:00
|
|
|
(version "2019.1.0.post0")
|
2018-11-12 16:00:39 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "fenics-ffc" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-20 11:21:24 +00:00
|
|
|
"1f2a44ha65fg3a1prrbrsz4dgvibsv0j5c3pi2m52zi93bhwwgg9"))))
|
2018-11-12 16:00:39 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-pytest))
|
2018-11-12 16:00:39 +00:00
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list python-fenics-dijitso python-fenics-fiat python-fenics-ufl))
|
2018-11-12 16:00:39 +00:00
|
|
|
(arguments
|
|
|
|
'(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
|
|
|
(lambda _
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
(with-directory-excursion "test"
|
|
|
|
;; FIXME: the tests in subdirectory
|
|
|
|
;; 'unit/ufc/finite_element' require the ffc_factory
|
|
|
|
;; extension module. This module, located in the 'libs'
|
|
|
|
;; subdirectory, needs to be built and made accessible
|
|
|
|
;; prior to running the tests.
|
|
|
|
(invoke "py.test" "unit/" "--ignore=unit/ufc/")
|
|
|
|
(with-directory-excursion "uflacs"
|
2021-01-24 04:05:21 +00:00
|
|
|
(invoke "py.test" "unit/")))
|
|
|
|
#t)))))
|
2018-11-12 16:00:39 +00:00
|
|
|
(home-page "https://bitbucket.org/fenics-project/ffc/")
|
|
|
|
(synopsis "Compiler for finite element variational forms")
|
|
|
|
(description "The FEniCS Form Compiler (FFC) is a compiler for
|
|
|
|
finite element variational forms. From a high-level description of
|
|
|
|
the form, it generates efficient low-level C++ code that can be used
|
|
|
|
to assemble the corresponding discrete operator (tensor). In
|
|
|
|
particular, a bilinear form may be assembled into a matrix and a
|
|
|
|
linear form may be assembled into a vector. FFC may be used either
|
|
|
|
from the command line (by invoking the @code{ffc} command) or as a
|
|
|
|
Python module (@code{import ffc}).
|
|
|
|
|
|
|
|
FFC is part of the FEniCS Project.")
|
|
|
|
;; There are two files released with a public domain licence;
|
|
|
|
;; ufc.h and ufc_geometry.h, in subdirectory 'ffc/backends/ufc'.
|
|
|
|
(license (list license:public-domain license:lgpl3+))))
|
2018-11-12 16:00:40 +00:00
|
|
|
|
|
|
|
(define-public fenics-dolfin
|
|
|
|
(package
|
|
|
|
(name "fenics-dolfin")
|
2020-01-22 15:14:05 +00:00
|
|
|
(version "2019.1.0.post0")
|
2018-11-12 16:00:40 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"https://bitbucket.org/fenics-project/dolfin/get/"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(file-name (string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-01-22 15:14:05 +00:00
|
|
|
"1m91hwcq5gfj4qqswp8l8kj58nia48f0n4kq13w0xqj4biq7rla0"))
|
2022-02-05 05:13:57 +00:00
|
|
|
(patches (search-patches "fenics-dolfin-algorithm.patch"
|
|
|
|
"fenics-dolfin-demo-init.patch"
|
|
|
|
"fenics-dolfin-boost.patch"
|
|
|
|
"fenics-dolfin-config-slepc.patch"))
|
2018-11-12 16:00:40 +00:00
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; Make sure we don't use the bundled test framework.
|
|
|
|
(delete-file-recursively "test/unit/cpp/catch")
|
|
|
|
(substitute* "test/unit/cpp/main.cpp"
|
|
|
|
;; Use standard search paths for 'catch' header file.
|
|
|
|
(("#include.*")
|
|
|
|
"#include <catch.hpp>\n"))
|
|
|
|
(substitute* "test/unit/cpp/CMakeLists.txt"
|
2020-01-22 15:14:05 +00:00
|
|
|
;; Specify directory to find the header file.
|
2018-11-12 16:00:40 +00:00
|
|
|
(("(^set\\(CATCH_INCLUDE_DIR ).*(/catch\\))" _ front back)
|
|
|
|
(string-append front
|
2022-04-22 20:25:44 +00:00
|
|
|
"$ENV{CATCH_DIR}/include" back "\n")))))))
|
2018-11-12 16:00:40 +00:00
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(list openblas
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
hdf5-parallel-openmpi
|
|
|
|
lapack
|
|
|
|
libxml2
|
|
|
|
openmpi
|
|
|
|
python-3
|
|
|
|
pt-scotch32
|
|
|
|
suitesparse
|
|
|
|
sundials-openmpi
|
|
|
|
zlib))
|
2018-11-12 16:00:40 +00:00
|
|
|
(native-inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(list catch-framework pkg-config))
|
2018-11-12 16:00:40 +00:00
|
|
|
(propagated-inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(list python-fenics-ffc petsc-openmpi slepc-openmpi))
|
2018-11-12 16:00:40 +00:00
|
|
|
(arguments
|
2023-06-15 15:31:56 +00:00
|
|
|
(list #:configure-flags #~`("-DDOLFIN_ENABLE_DOCS:BOOL=OFF"
|
|
|
|
"-DDOLFIN_ENABLE_HDF5:BOOL=ON"
|
|
|
|
"-DDOLFIN_ENABLE_MPI:BOOL=ON"
|
|
|
|
"-DDOLFIN_ENABLE_PARMETIS:BOOL=OFF"
|
|
|
|
"-DDOLFIN_ENABLE_SCOTCH:BOOL=ON"
|
|
|
|
"-DDOLFIN_ENABLE_SUNDIALS:BOOL=ON"
|
|
|
|
"-DDOLFIN_ENABLE_TRILINOS:BOOL=OFF")
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'patch-usr-bin-file 'mpi-setup
|
|
|
|
#$%openmpi-setup)
|
|
|
|
(add-after 'patch-source-shebangs 'set-paths
|
|
|
|
(lambda _
|
|
|
|
;; Define paths to store locations.
|
|
|
|
(setenv "BLAS_DIR"
|
|
|
|
#$(this-package-input "openblas"))
|
|
|
|
(setenv "CATCH_DIR"
|
|
|
|
#$(this-package-input "catch"))
|
|
|
|
(setenv "LAPACK_DIR"
|
|
|
|
#$(this-package-input "lapack"))
|
|
|
|
(setenv "PETSC_DIR"
|
|
|
|
#$(this-package-input "petsc"))
|
|
|
|
(setenv "SLEPC_DIR"
|
|
|
|
#$(this-package-input "slepc"))
|
|
|
|
(setenv "SCOTCH_DIR"
|
|
|
|
#$(this-package-input "scotch"))
|
|
|
|
(setenv "SUNDIALS_DIR"
|
|
|
|
#$(this-package-input "sundials"))
|
|
|
|
(setenv "UMFPACK_DIR"
|
|
|
|
#$(this-package-input "suitesparse"))))
|
|
|
|
(add-before 'check 'pre-check
|
|
|
|
(lambda _
|
|
|
|
;; The Dolfin repository uses git-lfs, whereby web links are
|
|
|
|
;; substituted for large files. Guix does not currently support
|
|
|
|
;; git-lfs, so only the links are downloaded. The tests that
|
|
|
|
;; require the absent meshes cannot run and are skipped.
|
|
|
|
;;
|
|
|
|
;; One serial test fails and is skipped.
|
|
|
|
;; i) demo_multimesh-stokes_serial:
|
|
|
|
;; Warning: Found no facets matching domain for boundary
|
|
|
|
;; condition.
|
|
|
|
;;
|
|
|
|
;; One mpi test fails and is skipped.
|
|
|
|
;; i) demo_stokes-iterative_mpi:
|
|
|
|
;; The MPI_Comm_rank() function was called before MPI_INIT was
|
|
|
|
;; invoked
|
|
|
|
(call-with-output-file "CTestCustom.cmake"
|
|
|
|
(lambda (port)
|
|
|
|
(display (string-append
|
|
|
|
"set(CTEST_CUSTOM_TESTS_IGNORE "
|
|
|
|
"demo_bcs_serial "
|
|
|
|
"demo_bcs_mpi "
|
|
|
|
"demo_eigenvalue_serial "
|
|
|
|
"demo_eigenvalue_mpi "
|
|
|
|
"demo_navier-stokes_serial "
|
|
|
|
"demo_navier-stokes_mpi "
|
|
|
|
"demo_stokes-taylor-hood_serial "
|
|
|
|
"demo_stokes-taylor-hood_mpi "
|
|
|
|
"demo_subdomains_serial "
|
|
|
|
"demo_advection-diffusion_serial "
|
|
|
|
"demo_advection-diffusion_mpi "
|
|
|
|
"demo_auto-adaptive-navier-stokes_serial "
|
|
|
|
"demo_contact-vi-snes_serial "
|
|
|
|
"demo_contact-vi-snes_mpi "
|
|
|
|
"demo_contact-vi-tao_serial "
|
|
|
|
"demo_contact-vi-tao_mpi "
|
|
|
|
"demo_curl-curl_serial "
|
|
|
|
"demo_curl-curl_mpi "
|
|
|
|
"demo_dg-advection-diffusion_serial "
|
|
|
|
"demo_dg-advection-diffusion_mpi "
|
|
|
|
"demo_elasticity_serial "
|
|
|
|
"demo_elasticity_mpi "
|
|
|
|
"demo_elastodynamics_serial "
|
|
|
|
"demo_elastodynamics_mpi "
|
|
|
|
"demo_lift-drag_serial "
|
|
|
|
"demo_lift-drag_mpi "
|
|
|
|
"demo_mesh-quality_serial "
|
|
|
|
"demo_mesh-quality_mpi "
|
|
|
|
"demo_multimesh-stokes_serial "
|
|
|
|
")\n") port)))))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(invoke "make" "unittests")
|
|
|
|
(invoke "make" "demos")
|
|
|
|
(invoke "ctest" "-R" "unittests")
|
|
|
|
(invoke "ctest" "-R" "demo" "-R" "serial")
|
|
|
|
(invoke "ctest" "-R" "demo" "-R" "mpi")))))))
|
2018-11-12 16:00:40 +00:00
|
|
|
(home-page "https://bitbucket.org/fenics-project/dolfin/")
|
|
|
|
(synopsis "Problem solving environment for differential equations")
|
|
|
|
(description
|
|
|
|
"DOLFIN is a computational framework for finding numerical
|
|
|
|
solutions to problems described by differential equations. Numerical
|
|
|
|
models in DOLFIN are constructed using general families of finite
|
|
|
|
elements. Data structures are provided for discretizing the governing
|
|
|
|
system on a computational mesh. A compact syntax, similar to
|
|
|
|
mathematical notation, is made available for defining function spaces
|
|
|
|
and expressing variational forms. Interfaces to specialized matrix
|
|
|
|
solvers are provided for solving the resultant linear systems.
|
|
|
|
|
|
|
|
@code{fenics-dolfin} is part of the FEniCS project. It is the C++
|
|
|
|
user interface to the FEniCS core components and external libraries.")
|
|
|
|
;; The source code for the DOLFIN C++ library is licensed under the
|
|
|
|
;; GNU Lesser General Public License, version 3 or later, with the
|
|
|
|
;; following exceptions:
|
|
|
|
;;
|
|
|
|
;; public-domain: dolfin/geometry/predicates.cpp
|
|
|
|
;; dolfin/geometry/predicates.h
|
|
|
|
;;
|
|
|
|
;; zlib: dolfin/io/base64.cpp
|
|
|
|
;; dolfin/io/base64.h
|
|
|
|
;;
|
|
|
|
;; expat: dolfin/io/pugiconfig.hpp
|
|
|
|
;; dolfin/io/pugixml.cpp
|
|
|
|
;; dolfin/io/pugixml.hpp
|
|
|
|
(license (list license:public-domain
|
|
|
|
license:zlib
|
|
|
|
license:expat
|
|
|
|
license:lgpl3+))))
|
2018-11-12 16:00:41 +00:00
|
|
|
|
|
|
|
(define-public fenics
|
gnu: Use PACKAGE/INHERIT in more places.
* gnu/packages/algebra.scm (fftwf, fftw-openmpi),
gnu/packages/audio.scm (ztoolkit-rsvg),
gnu/packages/bioinformatics.scm (python2-dendropy),
gnu/packages/boost.scm (boost-with-python2),
gnu/packages/check.scm (python2-mock, python2-pytest-mock),
gnu/packages/cups.scm (hplip-minimal),
gnu/packages/freedesktop.scm (libinput-minimal),
gnu/packages/gettext.scm (gnu-gettext),
gnu/packages/glib.scm (python2-pygobject),
gnu/packages/gnome.scm (gdl-minimal, libsoup-minimal, python2-pyatspi),
gnu/packages/groff.scm (groff-minimal),
gnu/packages/jami.scm (ffmpeg-jami),
gnu/packages/libcanberra.scm (libcanberra/gtk+-2),
gnu/packages/lirc.scm (python2-lirc),
gnu/packages/llvm.scm (clang-runtime-3.5),
gnu/packages/mpi.scm (java-openmpi, openmpi-thread-multiple),
gnu/packages/node.scm (libnode),
gnu/packages/onc-rpc.scm (libtirpc/hurd),
gnu/packages/python-compression.scm (bitshuffle-for-snappy),
gnu/packages/python-crypto.scm (python2-pycrypto, python2-cryptography)
(python2-cryptography, python2-m2crypto),
gnu/packages/python-web.scm (python2-html2text, python2-tornado)
(python2-terminado, python2-ndg-httpsclient, python2-websocket-client)
(python2-rauth, python2-url, python2-s3transfer),
gnu/packages/python-xyz.scm (python2-psutil, python2-serpent)
(python2-humanfriendly, python2-empy, python2-parse-type, python2-polib)
(python2-jsonschema, python2-pystache, python2-cython, python2-numpydoc)
(python2-ipyparallel, python2-traitlets, python2-dbus)
(python2-beautifulsoup4, python2-pep517, python2-flake8, python2-llfuse)
(python2-tlsh, python-file, python2-notebook, python-jupyter-console-minimal)
(python2-contextlib2, python2-promise, python2-anyjson, python2-amqp)
(python2-kombu, python2-billiard, python2-celery, python2-whoosh)
(python2-jellyfish, python-rope, ptpython-2, python2-binaryornot)
(python2-setproctitle, python2-argcomplete, python2-xopen, python2-isort)
(python2-radon, python2-rfc6555, python2-activepapers, python2-send2trash)
(python2-cloudpickle, python2-reparser),
gnu/packages/python.scm (python2-called-python),
gnu/packages/qt.scm (python2-sip, python-pyqt-without-qtwebkit, python2-pyqt)
(python-qscintilla, python-pyqt+qscintilla),
gnu/packages/scanner.scm (sane-backends),
gnu/packages/sdl.scm (guile3.0-sdl2),
gnu/packages/selinux.scm (checkpolicy, libselinux, libsemanage, secilc)
(python-sepolgen, policycoreutils),
gnu/packages/serialization.scm (lua5.1-libmpack, lua5.2-libmpack),
gnu/packages/simulation.scm (fenics),
gnu/packages/statistics.scm (python2-statsmodels),
gnu/packages/texinfo.scm (info-reader),
gnu/packages/wxwidgets.scm (wxwidgets-gtk2, wxwidgets-gtk2-3.1),
gnu/packages/xml.scm (xmlsec-nss),
gnu/packages/xorg.scm (uim-gtk, uim-qt),
guix/build-system/python.scm (package-with-explicit-python)
(strip-python2-variant): Use PACKAGE/INHERIT.
2021-03-17 07:42:12 +00:00
|
|
|
(package/inherit fenics-dolfin
|
2018-11-12 16:00:41 +00:00
|
|
|
(name "fenics")
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(modify-inputs (package-inputs fenics-dolfin)
|
|
|
|
(delete "python")
|
|
|
|
(prepend pybind11 python-matplotlib)))
|
2018-11-12 16:00:41 +00:00
|
|
|
(native-inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(modify-inputs (package-native-inputs fenics-dolfin)
|
|
|
|
(prepend cmake-minimal python-ply python-pytest python-decorator)))
|
2018-11-12 16:00:41 +00:00
|
|
|
(propagated-inputs
|
2023-06-15 15:31:56 +00:00
|
|
|
(list fenics-dolfin
|
|
|
|
python-petsc4py
|
|
|
|
python-slepc4py
|
2023-06-15 14:59:23 +00:00
|
|
|
|
2023-06-15 15:31:56 +00:00
|
|
|
;; 'dolfin/jit/jit.py' parses 'dolfin.pc' at run time.
|
|
|
|
python-pkgconfig))
|
2018-11-12 16:00:41 +00:00
|
|
|
(arguments
|
2023-06-15 15:31:56 +00:00
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'relax-requirements
|
|
|
|
(lambda _
|
|
|
|
(substitute* "python/setup.py"
|
|
|
|
(("pybind11==")
|
|
|
|
"pybind11>="))))
|
|
|
|
(add-after 'unpack 'set-dolfin-pc-file-name
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
;; Instead of cluttering the user's 'PKG_CONFIG_PATH' environment
|
|
|
|
;; variable, hard-code the 'dolfin.pc' absolute file name.
|
|
|
|
(let ((pc-file (search-input-file inputs
|
|
|
|
"/lib/pkgconfig/dolfin.pc")))
|
|
|
|
(substitute* "python/dolfin/jit/jit.py"
|
|
|
|
(("pkgconfig\\.parse\\(\"dolfin\"\\)")
|
|
|
|
(string-append "pkgconfig.parse(\"" pc-file
|
|
|
|
"\")"))))))
|
|
|
|
(add-after 'patch-source-shebangs 'set-paths
|
|
|
|
(lambda _
|
|
|
|
;; Define paths to store locations.
|
|
|
|
(setenv "PYBIND11_DIR" #$(this-package-input "pybind11"))
|
|
|
|
;; Move to python sub-directory.
|
|
|
|
(chdir "python")))
|
|
|
|
(add-after 'build 'mpi-setup
|
|
|
|
#$%openmpi-setup)
|
|
|
|
(add-before 'check 'pre-check
|
|
|
|
(lambda _
|
|
|
|
;; Exclude three tests that generate
|
|
|
|
;; 'NotImplementedError' in matplotlib version 3.1.2.
|
|
|
|
;; See
|
|
|
|
;; <https://github.com/matplotlib/matplotlib/issues/15382>.
|
|
|
|
;; Also exclude tests that require meshes supplied by
|
|
|
|
;; git-lfs.
|
|
|
|
(substitute* "demo/test.py"
|
|
|
|
(("(.*stem !.*)" line)
|
|
|
|
(string-append line
|
|
|
|
"\n"
|
|
|
|
"excludeList = [\n"
|
|
|
|
"'built-in-meshes', \n"
|
|
|
|
"'hyperelasticity', \n"
|
|
|
|
"'elasticity', \n"
|
|
|
|
"'multimesh-quadrature', \n"
|
|
|
|
"'multimesh-marking', \n"
|
|
|
|
"'mixed-poisson-sphere', \n"
|
|
|
|
"'mesh-quality', \n"
|
|
|
|
"'lift-drag', \n"
|
|
|
|
"'elastodynamics', \n"
|
|
|
|
"'dg-advection-diffusion', \n"
|
|
|
|
"'curl-curl', \n"
|
|
|
|
"'contact-vi-tao', \n"
|
|
|
|
"'contact-vi-snes', \n"
|
|
|
|
"'collision-detection', \n"
|
|
|
|
"'buckling-tao', \n"
|
|
|
|
"'auto-adaptive-navier-stokes', \n"
|
|
|
|
"'advection-diffusion', \n"
|
|
|
|
"'subdomains', \n"
|
|
|
|
"'stokes-taylor-hood', \n"
|
|
|
|
"'stokes-mini', \n"
|
|
|
|
"'navier-stokes', \n"
|
|
|
|
"'eigenvalue']\n"
|
|
|
|
"demos = ["
|
|
|
|
"d for d in demos if d[0].stem not in "
|
|
|
|
"excludeList]\n")))
|
|
|
|
(setenv "HOME"
|
|
|
|
(getcwd))
|
|
|
|
;; Restrict OpenBLAS to MPI-only in preference to MPI+OpenMP.
|
|
|
|
(setenv "OPENBLAS_NUM_THREADS" "1")))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(with-directory-excursion "test"
|
|
|
|
(invoke "pytest"
|
|
|
|
"unit"
|
|
|
|
;; The test test_snes_set_from_options() in the file
|
|
|
|
;; unit/nls/test_PETScSNES_solver.py fails and is ignored.
|
|
|
|
"--ignore"
|
|
|
|
"unit/nls/test_PETScSNES_solver.py"
|
|
|
|
;; Fails with a segfault.
|
|
|
|
"--ignore"
|
|
|
|
"unit/io/test_XDMF.py")))))
|
|
|
|
(add-after 'install 'install-demo-files
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((demos (string-append (assoc-ref outputs "out")
|
|
|
|
"/share/python-dolfin/demo")))
|
|
|
|
(mkdir-p demos)
|
|
|
|
(with-directory-excursion "demo"
|
|
|
|
(for-each (lambda (file)
|
|
|
|
(let* ((dir (dirname file))
|
|
|
|
(tgt-dir (string-append
|
|
|
|
demos "/" dir)))
|
|
|
|
(unless (equal? "." dir)
|
|
|
|
(mkdir-p tgt-dir)
|
|
|
|
(install-file file tgt-dir))))
|
|
|
|
(find-files "." ".*\\.(py|gz|xdmf)$")))))))))
|
2018-11-12 16:00:41 +00:00
|
|
|
(home-page "https://fenicsproject.org/")
|
|
|
|
(synopsis "High-level environment for solving differential equations")
|
|
|
|
(description
|
|
|
|
"@code{fenics} is a computing platform for solving general classes of
|
|
|
|
problems that involve differential equations. @code{fenics} facilitates
|
|
|
|
access to efficient methods for dealing with ordinary differential
|
|
|
|
equations (ODEs) and partial differential equations (PDEs). Systems of
|
|
|
|
equations such as these are commonly encountered in areas of engineering,
|
|
|
|
mathematics and the physical sciences. It is particularly well-suited to
|
|
|
|
problems that can be solved using the Finite Element Method (FEM).
|
|
|
|
|
|
|
|
@code{fenics} is the top level of the set of packages that are developed
|
|
|
|
within the FEniCS project. It provides the python user interface to the
|
|
|
|
FEniCS core components and external libraries.")
|
|
|
|
(license license:lgpl3+)))
|
2020-08-19 12:03:52 +00:00
|
|
|
|
|
|
|
(define-public fullswof-2d
|
|
|
|
(let ((revision 505)
|
|
|
|
(release "1.09.01"))
|
|
|
|
(package
|
|
|
|
(name "fullswof-2d")
|
|
|
|
(version release)
|
|
|
|
(source (origin
|
|
|
|
(method svn-fetch)
|
|
|
|
(uri (svn-reference
|
|
|
|
(url (string-append "https://subversion.renater.fr/"
|
|
|
|
"anonscm/svn/fullswof-2d/tags/"
|
|
|
|
"release-" version))
|
|
|
|
(revision revision)))
|
|
|
|
(file-name (string-append "fullswof-2d-" version "-checkout"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"16v08dx7h7n4wyddzbwimazwyj74ynis12mpjfkay4243npy44b8"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list inetutils)) ; for 'hostname', used in the check phase
|
2020-08-19 12:03:52 +00:00
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(delete 'configure) ; no configure script
|
|
|
|
(add-after 'build 'build-tools
|
|
|
|
(lambda _
|
|
|
|
(with-directory-excursion "Tools/ConvertFormat"
|
|
|
|
(invoke "make" "../../bin/asc2xyz")
|
|
|
|
(invoke "make" "../../bin/xyz2asc"))
|
|
|
|
(with-directory-excursion "Tools/ExtractWindow"
|
|
|
|
(invoke "make" "../../bin/cropxyz"))
|
|
|
|
#t))
|
|
|
|
(replace 'check ; no check target
|
|
|
|
(lambda _
|
|
|
|
(invoke "make" "benchref")))
|
|
|
|
(replace 'install ; no install target
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(bin (string-append out "/bin"))
|
|
|
|
(doc (string-append
|
|
|
|
out "/share/doc/" ,name "-" ,version))
|
|
|
|
(examples (string-append doc "/Examples")))
|
|
|
|
(with-directory-excursion "bin"
|
|
|
|
(for-each (lambda (binary) (install-file binary bin))
|
|
|
|
(list "asc2xyz" "xyz2asc" "cropxyz"
|
|
|
|
"FullSWOF_2D")))
|
|
|
|
(with-directory-excursion "doc"
|
|
|
|
(for-each (lambda (pdf) (install-file pdf doc))
|
|
|
|
(list "Documentation.pdf" "refman.pdf")))
|
|
|
|
(with-directory-excursion "Tools"
|
|
|
|
(for-each (lambda (dir)
|
|
|
|
(copy-file
|
|
|
|
(string-append dir "/README.txt")
|
|
|
|
(string-append doc "/README_" dir ".txt")))
|
|
|
|
(list "ConvertFormat" "ExtractWindow")))
|
|
|
|
(copy-recursively "Examples" examples)
|
|
|
|
#t))))))
|
|
|
|
(home-page "https://www.idpoisson.fr/fullswof/")
|
|
|
|
(synopsis "Two dimensional flow solver for flood modelling")
|
|
|
|
(description "@code{FullSWOF_2d} is a numerical tool for solving
|
|
|
|
the shallow water equations on structured grids. The name FullSWOF
|
|
|
|
refers to the Full form of the Shallow Water equations for Overland
|
|
|
|
Flow. The discretized system of equations is solved using the finite
|
|
|
|
volume method. A choice of shock-capturing methods is available to
|
|
|
|
locate the transition boundaries between the wet areas and the dry
|
|
|
|
areas in the model. A semi-implicit method is used to advance the
|
|
|
|
solution in time. The tool is typically applied to the modelling of
|
|
|
|
river flooding.")
|
|
|
|
(license license:cecill))))
|
2021-07-02 11:11:54 +00:00
|
|
|
|
|
|
|
(define-public python-meshio
|
|
|
|
(package
|
|
|
|
(name "python-meshio")
|
2022-05-02 21:17:10 +00:00
|
|
|
(version "5.3.4")
|
2021-07-02 11:11:54 +00:00
|
|
|
(source
|
2022-05-02 21:17:10 +00:00
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "meshio" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1w39qcg0rw5kb04j7sa45fnqd6k20fsdgrf62cmw2ygjgwnnjh72"))
|
|
|
|
(snippet
|
|
|
|
'(let ((file (open-file "setup.py" "a")))
|
|
|
|
(display "from setuptools import setup\nsetup()" file)
|
|
|
|
(close-port file)))))
|
2021-07-02 11:11:54 +00:00
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2022-05-02 21:16:44 +00:00
|
|
|
(list python-h5py
|
|
|
|
python-netcdf4))
|
2021-07-02 11:11:54 +00:00
|
|
|
(native-inputs
|
2022-05-02 21:16:44 +00:00
|
|
|
(list python-pytest))
|
2021-07-02 11:11:54 +00:00
|
|
|
(propagated-inputs
|
2022-05-02 21:16:44 +00:00
|
|
|
(list python-importlib-metadata
|
2022-05-02 21:17:10 +00:00
|
|
|
python-numpy
|
|
|
|
python-rich))
|
2021-07-02 11:11:54 +00:00
|
|
|
(arguments
|
2022-05-02 21:16:58 +00:00
|
|
|
'(#:phases
|
2021-07-02 11:11:54 +00:00
|
|
|
(modify-phases %standard-phases
|
|
|
|
(replace 'check
|
2022-05-02 21:16:58 +00:00
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(invoke "python" "-m" "pytest" "-v" "tests")))))))
|
2021-07-02 11:11:54 +00:00
|
|
|
(home-page "https://github.com/nschloe/meshio")
|
|
|
|
(synopsis "I/O for mesh files")
|
|
|
|
(description "There are various file formats available for
|
|
|
|
representing unstructured meshes and mesh data. The @code{meshio}
|
|
|
|
package is able to read and write mesh files in many formats and to
|
|
|
|
convert files from one format to another. Formats such as cgns, h5m,
|
|
|
|
gmsh, xdmf and vtk are supported. The package provides command-line
|
|
|
|
tools and a collection of Python modules for programmatic use.")
|
|
|
|
(license license:expat)))
|
2021-07-12 14:01:16 +00:00
|
|
|
|
|
|
|
(define-public python-pygmsh
|
|
|
|
(package
|
|
|
|
(name "python-pygmsh")
|
2022-06-07 01:32:30 +00:00
|
|
|
(version "7.1.17")
|
2021-07-12 14:01:16 +00:00
|
|
|
(source
|
2022-06-07 01:32:30 +00:00
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/nschloe/pygmsh")
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"11flp2c4ynk1fhanf4mqyzrpd0gjbnv6afrwwc7xi3mb6ms69lr0"))))
|
2022-10-17 19:44:31 +00:00
|
|
|
(build-system pyproject-build-system)
|
2021-07-12 14:01:16 +00:00
|
|
|
(arguments
|
2022-06-07 01:32:30 +00:00
|
|
|
(list
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'workaround-gmsh-detection-failure
|
|
|
|
(lambda _
|
|
|
|
;; Due to lack of metadata, the gmsh Python package is not
|
|
|
|
;; detected although importable.
|
|
|
|
(substitute* "pyproject.toml"
|
2022-10-17 19:44:31 +00:00
|
|
|
(("\"gmsh\",") "")))))))
|
|
|
|
(native-inputs (list python-flit-core python-pytest))
|
2022-06-07 01:32:30 +00:00
|
|
|
(propagated-inputs (list gmsh python-meshio python-numpy))
|
2021-07-12 14:01:16 +00:00
|
|
|
(home-page "https://github.com/nschloe/pygmsh")
|
|
|
|
(synopsis "Python frontend for Gmsh")
|
|
|
|
(description "The goal of @code{pygmsh} is to combine the power of
|
|
|
|
Gmsh with the versatility of Python. The package generalises many of
|
|
|
|
the methods and functions that comprise the Gmsh Python API. In this
|
|
|
|
way the meshing of complex geometries using high-level abstractions is
|
|
|
|
made possible. The package provides a Python library together with a
|
|
|
|
command-line utility for mesh optimisation.")
|
2022-06-07 01:32:30 +00:00
|
|
|
(license license:gpl3+)))
|
2021-07-22 08:42:37 +00:00
|
|
|
|
|
|
|
(define-public python-dolfin-adjoint
|
|
|
|
(package
|
|
|
|
(name "python-dolfin-adjoint")
|
|
|
|
(version "2019.1.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/dolfin-adjoint/pyadjoint")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0xhy76a5f33hz94wc9g2mc5qmwkxfccbbc6yxl7psm130afp8lhn"))
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
(snippet
|
|
|
|
'(begin
|
|
|
|
;; One of the migration tests attempts to call openmpi
|
|
|
|
;; recursively and fails. See
|
|
|
|
;; https://bitbucket.org/mpi4py/mpi4py/issues/95. Run the
|
|
|
|
;; test sequentially instead.
|
|
|
|
(with-directory-excursion "tests/migration/optimal_control_mms"
|
|
|
|
(substitute* "test_optimal_control_mms.py"
|
|
|
|
(("\\\"mpirun\\\", \\\"-n\\\", \\\"2\\\", ") "")))
|
|
|
|
;; Result files are regenerated in the check phase.
|
|
|
|
(delete-file-recursively
|
|
|
|
"tests/migration/viscoelasticity/test-results")
|
|
|
|
#t))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list fenics openmpi pybind11))
|
2021-07-22 08:42:37 +00:00
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
(list pkg-config
|
|
|
|
python-coverage
|
|
|
|
python-decorator
|
|
|
|
python-flake8
|
|
|
|
python-pkgconfig
|
|
|
|
python-pytest))
|
2021-07-22 08:42:37 +00:00
|
|
|
(propagated-inputs
|
|
|
|
`(("scipy" ,python-scipy)))
|
|
|
|
(arguments
|
|
|
|
`(#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'build 'mpi-setup
|
|
|
|
,%openmpi-setup)
|
|
|
|
(add-after 'install 'install-doc
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((doc (string-append (assoc-ref outputs "out")
|
|
|
|
"/share/doc/" ,name "-"
|
|
|
|
,version))
|
|
|
|
(examples (string-append doc "/examples")))
|
|
|
|
(mkdir-p examples)
|
|
|
|
(copy-recursively "examples" examples))
|
|
|
|
#t))
|
|
|
|
(replace 'check
|
|
|
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
|
|
(when tests?
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
(setenv "HOME" (getcwd))
|
2023-06-24 15:01:27 +00:00
|
|
|
(and (invoke "py.test" "-v" "tests/fenics_adjoint"
|
|
|
|
"-k" "not test_read_checkpoint")
|
2021-07-22 08:42:37 +00:00
|
|
|
(invoke "py.test" "-v" "tests/migration")
|
|
|
|
(invoke "py.test" "-v" "tests/pyadjoint")))
|
2023-06-24 15:01:27 +00:00
|
|
|
#t))
|
|
|
|
;; Remove 'sanity-check, because it tries to import
|
|
|
|
;; firedrake_adjoint after importing fenics_adjoint.
|
|
|
|
;; Both load a module named 'backend' and firedrake_adjoint
|
|
|
|
;; fails with an ImportError if it sees that the backend module
|
|
|
|
;; has already been loaded.
|
|
|
|
(delete 'sanity-check))))
|
gnu: Use HTTPS package home pages wherever possible.
* gnu/packages/accessibility.scm (florence)[home-page]: Use HTTPS.
* gnu/packages/admin.scm (netcat, nmon)[home-page]: Likewise.
* gnu/packages/algebra.scm (mpfrcx, cm, flint, fftw, r-dtt)[home-page]:
Likewise.
* gnu/packages/apr.scm (apr, apr-util)[home-page]: Likewise.
* gnu/packages/aspell.scm (aspell-dict-it)[home-page]: Likewise.
* gnu/packages/astronomy.scm (casacore, sextractor, libnova)
(xplanet)[home-page]: Likewise.
* gnu/packages/audio.scm (libtimidity, alsa-modular-synth, azr3, tao)
(freepats, rakarrack, liblo, libshout-idjc, timidity++, libsbsms)
(libmodplug, libxmp, xmp, sox, drc, gsm, gnaural)
(streamripper)[home-page]: Likewise.
* gnu/packages/authentication.scm (pamtester)[home-page]: Likewise.
* gnu/packages/backup.scm (grsync)[home-page]: Likewise.
* gnu/packages/bioconductor.scm (r-nmf, r-edger, r-limma)
(r-plgem)[home-page]: Likewise.
* gnu/packages/bioinformatics.scm (python-biom-format, bowtie, bowtie1)
(bwa, crossmap, java-htsjdk, java-htsjdk-latest, java-picard)
(java-picard-2.10.3, kaiju, proteinortho, rsem, rseqc, seek, samtools)
(snap-aligner, subread, stringtie, r-centipede, prinseq, emboss, phylip)
(libsbml)[home-page]: Likewise.
* gnu/packages/build-tools.scm (tup)[home-page]: Likewise.
* gnu/packages/cdrom.scm (libcddb, cdrdao, cdrtools)
(cd-discid)[home-page]: Likewise.
* gnu/packages/check.scm (cunit, python-nose)
(python-pyhamcrest)[home-page]: Likewise.
* gnu/packages/chemistry.scm (gromacs)[home-page]: Likewise.
* gnu/packages/chez.scm (chez-fmt)[home-page]: Likewise.
* gnu/packages/code.scm (lcov, uncrustify, cscope)[home-page]: Likewise.
* gnu/packages/compression.scm (p7zip)[home-page]: Likewise.
* gnu/packages/cran.scm (r-emdist, r-proj4, r-zoo, r-ggalluvial)
(r-orgmassspecr, r-polychrome, r-partykit, r-rcpp, r-ff, r-emdbook)
(r-fitdistrplus, r-linprog, r-geometry, r-dtw, r-fst, r-rjags)
(r-intergraph, r-qualv, r-labelled, r-survey, r-coin, r-fmsb, r-tm)
(r-corpcor, r-rmpfr, r-spatialextremes, r-longitudinal, r-genenet)
(r-bayesm, r-seqinr, r-mpm, r-text2vec, r-rgdal, r-seewave, r-hdrcde)
(r-shapes, r-anytime, r-stm, r-d3network, r-tam, r-directlabels)
(r-spatstat-utils, r-spatstat-sparse, r-spatstat-data, r-spatstat-geom)
(r-spatstat-core, r-spatstat-linnet, r-spatstat-random, r-spatstat)
(r-rcpptoml, r-mlecens, r-seurat, r-mlearning, r-zooimage)[home-page]:
Likewise.
* gnu/packages/crates-io.scm (rust-nickel-0.11, rust-thrift-0.13)
(rust-trust-dns-https-0.20, rust-trust-dns-native-tls-0.20)
(rust-trust-dns-openssl-0.20, rust-trust-dns-proto-0.20)
(rust-trust-dns-resolver-0.20, rust-trust-dns-rustls-0.20)
(rust-uint-0.9, rust-yaml-rust-0.4)[home-page]: Likewise.
* gnu/packages/crypto.scm (libdecaf, ccrypt)[home-page]: Likewise.
* gnu/packages/curl.scm (curlpp)[home-page]: Likewise.
* gnu/packages/databases.scm (python-pylibmc, unixodbc, wiredtiger)
(libpqxx, mdbtools, virtuoso-ose, libdbi, libdbi-drivers)
(soci)[home-page]: Likewise.
* gnu/packages/debian.scm (apt-mirror)[home-page]: Likewise.
* gnu/packages/debug.scm (remake)[home-page]: Likewise.
* gnu/packages/disk.scm (sdparm, idle3-tools, duc)[home-page]: Likewise.
* gnu/packages/django.scm (python-django-haystack)[home-page]: Likewise.
* gnu/packages/djvu.scm (djvulibre, djview)[home-page]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[home-page]: Likewise.
* gnu/packages/docbook.scm (dblatex, docbook2x)[home-page]: Likewise.
* gnu/packages/documentation.scm (scrollkeeper)[home-page]: Likewise.
* gnu/packages/ebook.scm (liblinebreak)[home-page]: Likewise.
* gnu/packages/electronics.scm (xoscope)[home-page]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-bbdb, emacs-caps-lock, emacs-djvu)
(emacs-pabbrev, emacs-twittering-mode, emacs-filladapt, emacs-rudel)
(emacs-stream, emacspeak, emacs-cc-mode, emacs-eldoc, emacs-jsonrpc)
(emacs-gtk-look, emacs-xclip, emacs-slime-volleyball, emacs-minimap)
(emacs-auto-dictionary-mode, emacs-persist, emacs-shell-command+)
(emacs-map, emacs-xref, emacs-dictionary)[home-page]: Likewise.
* gnu/packages/embedded.scm (sdcc)[home-page]: Likewise.
* gnu/packages/engineering.scm (asco, libngspice, libspnav)
(openctm)[home-page]: Likewise.
* gnu/packages/erlang.scm (erlang-erlware-commons)[home-page]: Likewise.
* gnu/packages/file-systems.scm (jfsutils, curlftpfs)[home-page]:
Likewise.
* gnu/packages/finance.scm (gbonds)[home-page]: Likewise.
* gnu/packages/flashing-tools.scm (dfu-util, srecord)[home-page]:
Likewise.
* gnu/packages/fltk.scm (ntk)[home-page]: Likewise.
* gnu/packages/fonts.scm (font-terminus, font-tex-gyre)
(font-comic-neue)[home-page]: Likewise.
* gnu/packages/fontutils.scm (ttf2pt1, potrace, libspiro)[home-page]:
Likewise.
* gnu/packages/fpga.scm (icestorm, gtkwave, gtkwave)
(python-myhdl)[home-page]: Likewise.
* gnu/packages/freedesktop.scm (libatasmart)[home-page]: Likewise.
* gnu/packages/ftp.scm (weex)[home-page]: Likewise.
* gnu/packages/game-development.scm (dds, python-tmx, sfxr, quesoglc)
(eureka, plib)[home-page]: Likewise.
* gnu/packages/games.scm (abe, alex4, armagetronad, barony)
(foobillard++, golly, ltris, pipewalker, prboom-plus, trigger-rally)
(cmatrix, pinball, pioneers, tennix, chromium-bsu, freeciv, kiki)
(quakespasm, frotz, frotz-dumb-terminal, frotz-sdl, btanks)
(flare-engine, chessx, barrage, cgoban, passage)[home-page]: Likewise.
* gnu/packages/geo.scm (python-geopandas, saga)[home-page]: Likewise.
* gnu/packages/gl.scm (freeglut, gl2ps)[home-page]: Likewise.
* gnu/packages/gnome.scm (cogl, clutter-gtk, clutter-gst, bluefish)
(workrave)[home-page]: Likewise.
* gnu/packages/gnustep.scm (wmnd, wmfire, wmfire)[home-page]: Likewise.
* gnu/packages/graph.scm (mscgen)[home-page]: Likewise.
* gnu/packages/graphics.scm (assimp, alembic, ctl, agg)
(opencsg)[home-page]: Likewise.
* gnu/packages/graphviz.scm (gts)[home-page]: Likewise.
* gnu/packages/gtk.scm (gtkspell3)[home-page]: Likewise.
* gnu/packages/guile-xyz.scm (guile-irregex)[home-page]: Likewise.
* gnu/packages/haskell-apps.scm (cpphs)[home-page]: Likewise.
* gnu/packages/haskell-check.scm (ghc-hunit)[home-page]: Likewise.
* gnu/packages/haskell-web.scm (ghc-http-client-restricted)
(ghc-blaze-html, ghc-happstack-server, ghc-sourcemap)[home-page]:
Likewise.
* gnu/packages/haskell-xyz.scm (ghc-assoc, ghc-cairo, ghc-cborg)
(ghc-csv, ghc-glob, ghc-gtk2hs-buildtools, ghc-hmatrix-gsl-stats)
(ghc-intervalmap, ghc-lens-family-core, ghc-managed, ghc-mountpoints)
(ghc-network-multicast, ghc-optional-args, ghc-regex, ghc-spoon)
(ghc-transformers, ghc-turtle, ghc-utf8-light, ghc-wizards)
(ghc-template-haskell, ghc-boot-th, ghc-binary-orphans)
(ghc-postgresql-simple)[home-page]: Likewise.
* gnu/packages/hexedit.scm (ht, bvi)[home-page]: Likewise.
* gnu/packages/hunspell.scm (hunspell-dict-hu)[home-page]: Likewise.
* gnu/packages/image-processing.scm (mia)[home-page]: Likewise.
* gnu/packages/image-viewers.scm (geeqie, gpicview, luminance-hdr)
(qiv)[home-page]: Likewise.
* gnu/packages/image.scm (libuemf, devil, steghide, optipng, niftilib)
(sng, mtpaint)[home-page]: Likewise.
* gnu/packages/java-xml.scm (java-simple-xml, java-jaxp)
(java-apache-xml-commons-resolver)[home-page]: Likewise.
* gnu/packages/java.scm (java-cisd-base, java-cisd-args4j)
(java-hamcrest-core, java-jsr305, java-eclipse-osgi)
(java-eclipse-equinox-common, java-eclipse-core-jobs)
(java-eclipse-equinox-registry, java-eclipse-equinox-app)
(java-eclipse-equinox-preferences, java-eclipse-core-contenttype)
(java-eclipse-text, java-treelayout, java-aopalliance, java-jeromq)
(java-cdi-api)[home-page]: Likewise.
* gnu/packages/jemalloc.scm (jemalloc-4.5.0)[home-page]: Likewise.
* gnu/packages/julia-xyz.scm (julia-recipespipeline)[home-page]:
Likewise.
* gnu/packages/kde-internet.scm (kget)[home-page]: Likewise.
* gnu/packages/kde-systemtools.scm (dolphin-plugins)
(konsole)[home-page]: Likewise.
* gnu/packages/kodi.scm (fstrcmp)[home-page]: Likewise.
* gnu/packages/language.scm (hime, libchewing)[home-page]: Likewise.
* gnu/packages/lego.scm (nqc)[home-page]: Likewise.
* gnu/packages/lesstif.scm (lesstif)[home-page]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[home-page]: Likewise.
* gnu/packages/libdaemon.scm (libdaemon)[home-page]: Likewise.
* gnu/packages/libffi.scm (libffi)[home-page]: Likewise.
* gnu/packages/libreoffice.scm (libwpd, libwpg, libwps)[home-page]:
Likewise.
* gnu/packages/libusb.scm (libmtp, gmtp)[home-page]: Likewise.
* gnu/packages/linux.scm (e2fsprogs, extundelete, lsscsi, net-tools)
(kbd, sysfsutils, cpuid, libpfm4)[home-page]: Likewise.
* gnu/packages/lisp-check.scm (sbcl-ptester, sbcl-xlunit)[home-page]:
Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-html-encode, sbcl-py-configparser)
(sbcl-cl-utilities, sbcl-series, sbcl-uffi, sbcl-clsql, sbcl-sycamore)
(sbcl-osicat, sbcl-hu.dwim.common, sbcl-caveman, sbcl-trivial-shell)
(sbcl-trivial-benchmark, sbcl-screamer, sbcl-smug)[home-page]: Likewise.
* gnu/packages/lisp.scm (lush2)[home-page]: Likewise.
* gnu/packages/logging.scm (log4cpp)[home-page]: Likewise.
* gnu/packages/lua.scm (lua-ldoc)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (mcl, openfst, rxcpp)[home-page]:
Likewise.
* gnu/packages/mail.scm (muchsync, procmail, sendmail)
(opensmtpd-filter-dkimsign, crm114)[home-page]: Likewise.
* gnu/packages/man.scm (libpipeline, man-db)[home-page]: Likewise.
* gnu/packages/maths.scm (lapack, scalapack, hdf-eos5, itpp, gmsh)
(metamath, p4est, armadillo, suitesparse, atlas, lpsolve, wcalc, why3)
(frama-c)[home-page]: Likewise.
* gnu/packages/mcrypt.scm (mcrypt, libmcrypt, libmhash)[home-page]:
Likewise.
* gnu/packages/minetest.scm (minetest-advtrains)[home-page]: Likewise.
* gnu/packages/monitoring.scm (python-whisper, python-carbon)
(hostscope)[home-page]: Likewise.
* gnu/packages/mp3.scm (id3lib, libmp3splt, mp3splt, mpg321)
(lame)[home-page]: Likewise.
* gnu/packages/multiprecision.scm (mpc)[home-page]: Likewise.
* gnu/packages/music.scm (aria-maestosa, lingot, setbfree, bristol)
(portmidi, python-pyportmidi, zynaddsubfx, yoshimi, aj-snapshot)
(schismtracker, midicsv, midicsv, qmidiarp, qmidiroute, dssi, tap-lv2)
(shiru-lv2)[home-page]: Likewise.
* gnu/packages/ncurses.scm (stfl)[home-page]: Likewise.
* gnu/packages/networking.scm (lksctp-tools, mbuffer, ifstatus, bird)
(tunctl, traceroute)[home-page]: Likewise.
* gnu/packages/node-xyz.scm (node-mersenne)[home-page]: Likewise.
* gnu/packages/ntp.scm (openntpd)[home-page]: Likewise.
* gnu/packages/ocaml.scm (opam, hevea, ocaml-menhir, ocaml-piqilib)
(ocaml-graph, cubicle)[home-page]: Likewise.
* gnu/packages/opencl.scm (python-pyopencl)[home-page]: Likewise.
* gnu/packages/package-management.scm (xstow, modules)[home-page]:
Likewise.
* gnu/packages/parallel.scm (xjobs)[home-page]: Likewise.
* gnu/packages/pdf.scm (podofo, qpdf, xournal, impressive)[home-page]:
Likewise.
* gnu/packages/perl.scm (perl-math-vecstat, perltidy)[home-page]:
Likewise.
* gnu/packages/photo.scm (libpano13, enblend-enfuse, hugin)[home-page]:
Likewise.
* gnu/packages/plan9.scm (drawterm)[home-page]: Likewise.
* gnu/packages/plotutils.scm (guile-charting, ploticus)[home-page]:
Likewise.
* gnu/packages/popt.scm (argtable, popt)[home-page]: Likewise.
* gnu/packages/profiling.scm (otf2)[home-page]: Likewise.
* gnu/packages/pulseaudio.scm (pulseaudio)[home-page]: Likewise.
* gnu/packages/python-check.scm (python-mypy)[home-page]: Likewise.
* gnu/packages/python-web.scm (python-cssutils)
(python-translationstring)[home-page]: Likewise.
* gnu/packages/python-xyz.scm (python-diskcache, python-doxyqml)
(python-docutils, python-pexpect, python-importlib-resources)
(python-simplegeneric, python-urwid, python-xlrd, python-xlwt)
(python-pyasn1, python-pythondialog, python-tftpy, python-random2)
(python-arcp, python-pyopengl, python-sortedcollections)
(python-sortedcontainers, python-yapsy, python-pydispatcher)
(python-posix-ipc)[home-page]: Likewise.
* gnu/packages/qt.scm (qwt, libqglviewer, signond)[home-page]: Likewise.
* gnu/packages/radio.scm (unixcw, gnuais)[home-page]: Likewise.
* gnu/packages/raspberry-pi.scm (bcm2835)[home-page]: Likewise.
* gnu/packages/rdf.scm (clucene, rasqal, redland)[home-page]: Likewise.
* gnu/packages/regex.scm (tre)[home-page]: Likewise.
* gnu/packages/rsync.scm (librsync)[home-page]: Likewise.
* gnu/packages/ruby.scm (ruby-packnga, ruby-nokogiri, ruby-oj, ruby-ox)
(ruby-sinatra, ruby-citrus, ruby-cbor, ruby-roda)[home-page]: Likewise.
* gnu/packages/scheme.scm (scheme48, tinyscheme)[home-page]: Likewise.
* gnu/packages/screen.scm (dtach)[home-page]: Likewise.
* gnu/packages/scsi.scm (sg3-utils)[home-page]: Likewise.
* gnu/packages/sdl.scm (libmikmod, sdl-pango)[home-page]: Likewise.
* gnu/packages/shellutils.scm (hstr, rig)[home-page]: Likewise.
* gnu/packages/simulation.scm (python-dolfin-adjoint)[home-page]:
Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[home-page]: Likewise.
* gnu/packages/speech.scm (espeak)[home-page]: Likewise.
* gnu/packages/stalonetray.scm (stalonetray)[home-page]: Likewise.
* gnu/packages/statistics.scm (jags, r-mass, r-class, r-lattice)
(r-matrix, r-nnet, r-spatial, r-bit, r-bit64, r-digest, r-xtable)
(python-statsmodels, r-ade4, r-latticeextra, r-rcurl, r-xml, r-mvtnorm)
(r-robustbase, r-minqa, r-fdrtool, java-jdistlib, xlispstat)[home-page]:
Likewise.
* gnu/packages/swig.scm (swig)[home-page]: Likewise.
* gnu/packages/task-management.scm (wtime)[home-page]: Likewise.
* gnu/packages/tcl.scm (itcl, tclxml, tclx)[home-page]: Likewise.
* gnu/packages/terminals.scm (libtermkey, mlterm, libvterm)
(libvterm)[home-page]: Likewise.
* gnu/packages/tex.scm (texlive-lm, texlive-lm-math, texlive-cs)
(texlive-csplain, biber, texmaker)[home-page]: Likewise.
* gnu/packages/text-editors.scm (joe)[home-page]: Likewise.
* gnu/packages/textutils.scm (drm-tools, docx2txt)[home-page]: Likewise.
* gnu/packages/tv.scm (tvtime)[home-page]: Likewise.
* gnu/packages/unicode.scm (libunibreak)[home-page]: Likewise.
* gnu/packages/upnp.scm (libupnp)[home-page]: Likewise.
* gnu/packages/version-control.scm (cvs)[home-page]: Likewise.
* gnu/packages/video.scm (transcode, libquicktime, mjpegtools, aalib)
(liba52, libmpeg2, x265, libdv, dvdauthor, aegisub, pitivi, gavl)
(dvdbackup, guvcview, video-contact-sheet)[home-page]: Likewise.
* gnu/packages/virtualization.scm (bochs)[home-page]: Likewise.
* gnu/packages/w3m.scm (w3m)[home-page]: Likewise.
* gnu/packages/web.scm (qjson, libquvi-scripts, libquvi, quvi)
(tidy-html, htmlcxx)[home-page]: Likewise.
* gnu/packages/wm.scm (evilwm, menumaker)[home-page]: Likewise.
* gnu/packages/wv.scm (wv)[home-page]: Likewise.
* gnu/packages/wxwidgets.scm (wxsvg)[home-page]: Likewise.
* gnu/packages/xdisorg.scm (mtdev, xsel)[home-page]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[home-page]: Likewise.
* gnu/packages/xml.scm (openjade, python-pyxb, xmlstarlet, xmlrpc-c)
(opensp)[home-page]: Likewise.
* gnu/packages/xorg.scm (xf86-video-qxl)[home-page]: Likewise.
2023-02-12 00:00:00 +00:00
|
|
|
(home-page "https://www.dolfin-adjoint.org")
|
2021-07-22 08:42:37 +00:00
|
|
|
(synopsis "Automatic differentiation library")
|
|
|
|
(description "@code{python-dolfin-adjoint} is a solver of
|
|
|
|
differential equations associated with a governing system and a
|
|
|
|
functional of interest. Working from the forward model the solver
|
|
|
|
automatically derives the discrete adjoint and tangent linear models.
|
|
|
|
These additional models are key ingredients in many algorithms such as
|
|
|
|
data assimilation, optimal control, sensitivity analysis, design
|
|
|
|
optimisation and error estimation. The dolfin-adjoint project
|
|
|
|
provides the necessary tools and data structures for cases where the
|
|
|
|
forward model is implemented in @code{fenics} or
|
|
|
|
@url{https://firedrakeproject.org,firedrake}.")
|
|
|
|
(license license:lgpl3)))
|
2022-01-28 14:39:23 +00:00
|
|
|
|
2022-12-03 09:40:08 +00:00
|
|
|
(define %commonroad-dont-install-license-at-root
|
|
|
|
#~(substitute* "setup.py"
|
|
|
|
(("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],")
|
|
|
|
"")))
|
|
|
|
|
|
|
|
(define-public python-commonroad-vehicle-models
|
|
|
|
(package
|
|
|
|
(name "python-commonroad-vehicle-models")
|
|
|
|
(version "3.0.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "commonroad-vehicle-models" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"13jg0cys7y4n7rg548w6mxk9g10gd5qxmj4ynrlriczpffqy6kc7"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-setup.py
|
|
|
|
(lambda _
|
|
|
|
#$%commonroad-dont-install-license-at-root)))))
|
|
|
|
(propagated-inputs (list python-numpy python-omegaconf))
|
|
|
|
(home-page "https://commonroad.in.tum.de/")
|
|
|
|
(synopsis "CommonRoad vehicle models")
|
|
|
|
(description "This package provides vehicle models used in CommonRoad
|
|
|
|
benchmarks. Varying abstraction levels are used ranging from kinematic single
|
|
|
|
track models to multi-body models.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2022-12-03 09:43:01 +00:00
|
|
|
(define-public python-commonroad-io
|
|
|
|
(package
|
|
|
|
(name "python-commonroad-io")
|
|
|
|
(version "2022.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (pypi-uri "commonroad-io" version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1cj9zj567mca8xb8sx9h3nnl2cccv6vh8h73imgpq61cimk9mvas"))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(arguments
|
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-setup.py
|
|
|
|
(lambda _
|
|
|
|
#$%commonroad-dont-install-license-at-root)))))
|
|
|
|
(propagated-inputs (list python-commonroad-vehicle-models
|
|
|
|
python-iso3166
|
|
|
|
python-lxml
|
|
|
|
python-matplotlib
|
|
|
|
python-networkx
|
|
|
|
python-numpy
|
|
|
|
python-omegaconf
|
|
|
|
python-pillow
|
|
|
|
python-protobuf
|
|
|
|
python-rtree
|
|
|
|
python-scipy
|
|
|
|
python-shapely
|
|
|
|
python-tqdm))
|
|
|
|
(native-inputs (list python-lxml python-pytest))
|
|
|
|
(home-page "https://commonroad.in.tum.de/")
|
|
|
|
(synopsis "Read, write, and visualize CommonRoad scenarios.")
|
|
|
|
(description "This package provides methods to read, write, and visualize
|
|
|
|
CommonRoad scenarios and planning problems. It can be used as a framework for
|
|
|
|
implementing motion planning algorithms to solve CommonRoad Benchmarks
|
|
|
|
and is the basis for other tools of the CommonRoad Framework.")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2022-12-03 09:43:08 +00:00
|
|
|
(define-public python-commonroad-route-planner
|
|
|
|
(package
|
|
|
|
(name "python-commonroad-route-planner")
|
|
|
|
(version "2022.3")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
|
|
|
|
(commit version)))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0xn0l7bzmj56d4mlqacvbl8mdvsffkg2fn2lzfmis5jl4vp99ipf"))))
|
|
|
|
(arguments
|
|
|
|
(list #:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'fix-setup.py
|
|
|
|
(lambda _
|
|
|
|
#$%commonroad-dont-install-license-at-root)))))
|
|
|
|
(build-system python-build-system)
|
|
|
|
(propagated-inputs (list python-commonroad-io
|
|
|
|
python-matplotlib
|
|
|
|
python-networkx
|
|
|
|
python-numpy
|
|
|
|
python-setuptools
|
|
|
|
python-shapely))
|
|
|
|
(home-page "https://gitlab.lrz.de/tum-cps/commonroad-route-planner")
|
|
|
|
(synopsis "Route planner for CommonRoad scenarios")
|
|
|
|
(description "This package provides functions for route planning, that is
|
|
|
|
finding sequences that lead from a given start lanelet to some goal
|
|
|
|
lanelet(s).")
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
2022-01-28 14:39:23 +00:00
|
|
|
(define-public sumo
|
|
|
|
(package
|
|
|
|
(name "sumo")
|
|
|
|
(version "1.14.1")
|
|
|
|
(source (origin
|
|
|
|
(method git-fetch)
|
|
|
|
(uri (git-reference
|
|
|
|
(url "https://github.com/eclipse/sumo")
|
|
|
|
(commit (string-append "v"
|
|
|
|
(string-replace-substring version
|
|
|
|
"." "_")))))
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1965vrsff0k14z3y3b1c460zdwp9nx6q6plrdyxn496vg6846k1y"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(arguments
|
|
|
|
(list
|
|
|
|
#:phases
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'disable-problematic-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
;; docs/example appears to be missing
|
|
|
|
(("add_test\\(exampletest .*") ""))
|
|
|
|
(substitute* "src/traci_testclient/CMakeLists.txt"
|
|
|
|
;; requires network connection (at least to localhost)
|
|
|
|
(("add_test\\(NAME libtracitest .*") "")))))))
|
|
|
|
(inputs (list eigen
|
|
|
|
freetype
|
|
|
|
fontconfig
|
|
|
|
ffmpeg
|
|
|
|
fox
|
|
|
|
gdal
|
|
|
|
glu
|
|
|
|
gperftools ; tcmalloc
|
|
|
|
libjpeg-turbo
|
|
|
|
libtiff
|
|
|
|
libx11
|
|
|
|
libxcursor
|
|
|
|
libxft
|
|
|
|
libxi
|
|
|
|
libxrandr
|
|
|
|
libxrender
|
|
|
|
openscenegraph
|
|
|
|
proj
|
|
|
|
python
|
|
|
|
xerces-c
|
|
|
|
zlib))
|
|
|
|
(native-inputs (list googletest python))
|
|
|
|
(home-page "https://eclipse.org/sumo")
|
|
|
|
(synopsis "Traffic simulator")
|
|
|
|
(description "@acronym{SUMO, Simulation of Urban MObility} is a traffic
|
|
|
|
simulation package designed to handle large road networks and different modes
|
|
|
|
of transportation -- including road vehicles, public transport and pedestrians.
|
|
|
|
Included with SUMO is a wealth of supporting tools which automate core tasks
|
|
|
|
for the creation, the execution and evaluation of traffic simulations,
|
|
|
|
such as network import, route calculations, visualization and emission
|
|
|
|
calculation. SUMO can be enhanced with custom models and provides various
|
|
|
|
APIs to remotely control the simulation.")
|
|
|
|
(license (list license:epl2.0 license:gpl2+))))
|