diff options
| author | Andreas Enge <andreas@enge.fr> | 2026-03-06 11:36:46 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-03-06 11:36:48 +0100 |
| commit | ebe4cc6b3b7c02f691c4ce236a9a7c98746205a4 (patch) | |
| tree | c151938e6dfd4c5c64b818716154db3c0a3e0a7c /gnu/packages/simulation.scm | |
| parent | 762f08d74a47c4029590b9dd8d2a6f8734d2c820 (diff) | |
gnu: Remove python-dolfin-adjoint.
* gnu/packages/simulation.scm (python-dolfin-adjoint): Delete variable.
Fixes: guix/guix#6128
Change-Id: I86bf93403a7cf222b9ae89cb0e786b9b86384d04
Diffstat (limited to 'gnu/packages/simulation.scm')
| -rw-r--r-- | gnu/packages/simulation.scm | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/gnu/packages/simulation.scm b/gnu/packages/simulation.scm index 14f1f0fc18f..8be2ac72bb2 100644 --- a/gnu/packages/simulation.scm +++ b/gnu/packages/simulation.scm | |||
| @@ -1447,91 +1447,6 @@ resources to model limited capacity congestion points (like servers, checkout | |||
| 1447 | counters and tunnels).") | 1447 | counters and tunnels).") |
| 1448 | (license license:bsd-2))) | 1448 | (license license:bsd-2))) |
| 1449 | 1449 | ||
| 1450 | (define-public python-dolfin-adjoint | ||
| 1451 | (package | ||
| 1452 | (name "python-dolfin-adjoint") | ||
| 1453 | (version "2019.1.0") | ||
| 1454 | (source | ||
| 1455 | (origin | ||
| 1456 | (method git-fetch) | ||
| 1457 | (uri (git-reference | ||
| 1458 | (url "https://github.com/dolfin-adjoint/pyadjoint") | ||
| 1459 | (commit version))) | ||
| 1460 | (file-name (git-file-name name version)) | ||
| 1461 | (sha256 | ||
| 1462 | (base32 "0xhy76a5f33hz94wc9g2mc5qmwkxfccbbc6yxl7psm130afp8lhn")) | ||
| 1463 | (modules '((guix build utils))) | ||
| 1464 | (snippet | ||
| 1465 | '(begin | ||
| 1466 | ;; One of the migration tests attempts to call openmpi | ||
| 1467 | ;; recursively and fails. See | ||
| 1468 | ;; https://bitbucket.org/mpi4py/mpi4py/issues/95. Run the | ||
| 1469 | ;; test sequentially instead. | ||
| 1470 | (with-directory-excursion "tests/migration/optimal_control_mms" | ||
| 1471 | (substitute* "test_optimal_control_mms.py" | ||
| 1472 | (("\\\"mpirun\\\", \\\"-n\\\", \\\"2\\\", ") ""))) | ||
| 1473 | ;; Result files are regenerated in the check phase. | ||
| 1474 | (delete-file-recursively | ||
| 1475 | "tests/migration/viscoelasticity/test-results"))))) | ||
| 1476 | (build-system pyproject-build-system) | ||
| 1477 | (arguments | ||
| 1478 | (list | ||
| 1479 | #:test-flags | ||
| 1480 | #~(list | ||
| 1481 | ;; Ignore tests which require missing packages and/or failed during | ||
| 1482 | ;; tests collection. | ||
| 1483 | "--import-mode=importlib" | ||
| 1484 | "--ignore=tests/firedrake_adjoint" | ||
| 1485 | "--ignore=tests/fenics_adjoint/test_dynamic_meshes.py" | ||
| 1486 | "-k" (string-append "not test_sin_weak_spatial and " | ||
| 1487 | "not test_shape_hessian and " | ||
| 1488 | "not test_read_checkpoint and " | ||
| 1489 | "not test_lu_solver and " | ||
| 1490 | "not test_lu_solver_function_ctrl and " | ||
| 1491 | "not test_dirichletbc_subspace")) | ||
| 1492 | #:phases | ||
| 1493 | #~(modify-phases %standard-phases | ||
| 1494 | (add-after 'build 'mpi-setup #$%openmpi-setup) | ||
| 1495 | (add-before 'check 'set-environment-variables | ||
| 1496 | (lambda _ | ||
| 1497 | (setenv "HOME" (getcwd)))) | ||
| 1498 | (add-after 'install 'install-doc | ||
| 1499 | (lambda _ | ||
| 1500 | (let* ((doc (string-append #$output "/share/doc/" #$name "-" #$version)) | ||
| 1501 | (examples (string-append doc "/examples"))) | ||
| 1502 | (mkdir-p examples) | ||
| 1503 | (copy-recursively "examples" examples)))) | ||
| 1504 | ;; Remove 'sanity-check, because it tries to import | ||
| 1505 | ;; firedrake_adjoint after importing fenics_adjoint. | ||
| 1506 | ;; Both load a module named 'backend' and firedrake_adjoint | ||
| 1507 | ;; fails with an ImportError if it sees that the backend module | ||
| 1508 | ;; has already been loaded. | ||
| 1509 | (delete 'sanity-check)))) | ||
| 1510 | (inputs | ||
| 1511 | (list fenics openmpi pybind11-2)) | ||
| 1512 | (native-inputs | ||
| 1513 | (list pkg-config | ||
| 1514 | python-decorator | ||
| 1515 | python-pkgconfig | ||
| 1516 | python-pytest | ||
| 1517 | python-setuptools | ||
| 1518 | python-wheel)) | ||
| 1519 | (propagated-inputs | ||
| 1520 | (list python-scipy)) | ||
| 1521 | (home-page "https://www.dolfin-adjoint.org") | ||
| 1522 | (synopsis "Automatic differentiation library") | ||
| 1523 | (description | ||
| 1524 | "@code{python-dolfin-adjoint} is a solver of differential equations | ||
| 1525 | associated with a governing system and a functional of interest. Working from | ||
| 1526 | the forward model the solver automatically derives the discrete adjoint and | ||
| 1527 | tangent linear models. These additional models are key ingredients in many | ||
| 1528 | algorithms such as data assimilation, optimal control, sensitivity analysis, | ||
| 1529 | design optimisation and error estimation. The dolfin-adjoint project provides | ||
| 1530 | the necessary tools and data structures for cases where the forward model is | ||
| 1531 | implemented in @code{fenics} or | ||
| 1532 | @url{https://firedrakeproject.org,firedrake}.") | ||
| 1533 | (license license:lgpl3))) | ||
| 1534 | |||
| 1535 | (define %commonroad-dont-install-license-at-root | 1450 | (define %commonroad-dont-install-license-at-root |
| 1536 | #~(substitute* "setup.py" | 1451 | #~(substitute* "setup.py" |
| 1537 | (("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],") | 1452 | (("data_files=\\[\\('.', \\['LICENSE.txt'\\]\\)\\],") |
