diff options
author | Felix Gruber <felgru@posteo.net> | 2024-11-14 20:21:01 +0000 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2024-11-22 20:18:54 +0100 |
commit | 7e855f5fa0e7aa5950d94260ea1f493aabc262b0 (patch) | |
tree | 7dc9afdd19f073abb6f3dd6653e8ee594abe1c43 | |
parent | 3b5e1b493198660e2e8af84996323eb157adee0c (diff) | |
download | guix-7e855f5fa0e7aa5950d94260ea1f493aabc262b0.tar.gz guix-7e855f5fa0e7aa5950d94260ea1f493aabc262b0.zip |
gnu: dune-istl: Update to 2.10.0.
* gnu/packages/maths.scm (dune-istl): Update to 2.10.0.
[source]: Remove patch that has been applied upstream.
* gnu/packages/patches/dune-istl-fix-solver-playground.patch: Remove
file.
* gnu/local.mk (dist_patch_DATA): Remove it.
Change-Id: Ifbbb6f2dea815159a1743ae6e622c154cf1cc9b0
Signed-off-by: Andreas Enge <andreas@enge.fr>
-rw-r--r-- | gnu/local.mk | 1 | ||||
-rw-r--r-- | gnu/packages/maths.scm | 5 | ||||
-rw-r--r-- | gnu/packages/patches/dune-istl-fix-solver-playground.patch | 61 |
3 files changed, 2 insertions, 65 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index f51abd8fe3..0c9a10b79c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1165,7 +1165,6 @@ dist_patch_DATA = \ %D%/packages/patches/dtc-meson-cell-overflow.patch \ %D%/packages/patches/duc-fix-test-sh.patch \ %D%/packages/patches/dune-common-skip-failing-tests.patch \ - %D%/packages/patches/dune-istl-fix-solver-playground.patch \ %D%/packages/patches/durden-shadow-arcan.patch \ %D%/packages/patches/dvd+rw-tools-add-include.patch \ %D%/packages/patches/dwarves-threading-reproducibility.patch \ diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 5c3ffd6d2d..8634c40af1 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -8546,7 +8546,7 @@ This package contains the basic DUNE grid classes.") (define-public dune-istl (package (name "dune-istl") - (version "2.9.0") + (version "2.10.0") (source (origin (method url-fetch) @@ -8554,8 +8554,7 @@ This package contains the basic DUNE grid classes.") version "/dune-istl-" version ".tar.gz")) (sha256 (base32 - "0smghqr400xl84j0laabgwaj2p5jlj3n3s85bm7qp9m2vjz6rav6")) - (patches (search-patches "dune-istl-fix-solver-playground.patch")))) + "0rk95rkj87gpb3gn40jl532rybs2lxkhn7g6b30m9kbzz7yfjfbc")))) (build-system cmake-build-system) (arguments `(#:phases diff --git a/gnu/packages/patches/dune-istl-fix-solver-playground.patch b/gnu/packages/patches/dune-istl-fix-solver-playground.patch deleted file mode 100644 index b3df4b6ffa..0000000000 --- a/gnu/packages/patches/dune-istl-fix-solver-playground.patch +++ /dev/null @@ -1,61 +0,0 @@ -From fe929f17e98b577171f58ca520b5145be41730ea Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org> -Date: Thu, 16 Mar 2023 19:48:40 +0100 -Subject: [PATCH] Adjust sequential and both parallel cases in - istl-solver-playground - -Do same thing, independent of paralellel, distributed, or -sequential. -This fixes the test in the sequential case. ---- - src/istl-solver-playground.hh | 22 ++++++++++++++++------ - 1 file changed, 16 insertions(+), 6 deletions(-) - -diff --git a/src/istl-solver-playground.hh b/src/istl-solver-playground.hh -index 0ff3abd5..11693cf5 100644 ---- a/src/istl-solver-playground.hh -+++ b/src/istl-solver-playground.hh -@@ -66,7 +66,11 @@ std::shared_ptr<OOCOMM> loadSystem(std::shared_ptr<Mat>& m, - std::shared_ptr<OOCOMM> oocomm; - if(distributed){ - oocomm = std::make_shared<OOCOMM>(MPI_COMM_WORLD); -- loadMatrixMarket(*m, matrixfilename, *oocomm); -+ if(matrixfilename != "laplacian"){ -+ loadMatrixMarket(*m, matrixfilename, *oocomm); -+ }else{ -+ setupLaplacian(*m, config.get("N", 20)); -+ } - if(config.get("random_rhs", false)){ - rhs->resize(m->N()); - srand(42); -@@ -98,16 +102,22 @@ template<class Mat, class Vec> - void loadSystem(std::shared_ptr<Mat>& m, - std::shared_ptr<Vec>& rhs, - const Dune::ParameterTree& config){ -- std::string matrixfilename = config.get<std::string>("matrix"); -+ // generate Laplacian or load matrix -+ std::string matrixfilename = config.get<std::string>("matrix", "laplacian"); -+ if(matrixfilename == "laplacian"){ -+ setupLaplacian(*m, config.get("N", 20)); -+ }else{ -+ loadMatrixMarket(*m, matrixfilename); -+ } -+ // use random values or load right-hand side - std::string rhsfilename; -- if(!config.get("random_rhs", false)) -- rhsfilename = config.get<std::string>("rhs"); -- loadMatrixMarket(*m, matrixfilename); - if(config.get("random_rhs", false)){ - rhs->resize(m->N()); - fillRandom(*rhs); -- }else -+ }else{ -+ rhsfilename = config.get<std::string>("rhs"); - loadMatrixMarket(*rhs, rhsfilename); -+ } - } - #endif - --- -2.39.2 - |