From fe929f17e98b577171f58ca520b5145be41730ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= 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 loadSystem(std::shared_ptr& m, std::shared_ptr oocomm; if(distributed){ oocomm = std::make_shared(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 void loadSystem(std::shared_ptr& m, std::shared_ptr& rhs, const Dune::ParameterTree& config){ - std::string matrixfilename = config.get("matrix"); + // generate Laplacian or load matrix + std::string matrixfilename = config.get("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("rhs"); - loadMatrixMarket(*m, matrixfilename); if(config.get("random_rhs", false)){ rhs->resize(m->N()); fillRandom(*rhs); - }else + }else{ + rhsfilename = config.get("rhs"); loadMatrixMarket(*rhs, rhsfilename); + } } #endif -- 2.39.2 bb5ab6c3dd'>root/nix/libstore/optimise-store.cc
AgeCommit message (Expand)Author
2020-06-25daemon: Correctly handle EMLINK corner case when deduplicating....Suggested by Caleb Ristvedt <caleb.ristvedt@cune.org>. * nix/libstore/optimise-store.cc (LocalStore::optimisePath_): Save errno from 'rename' before calling 'unlink'. Ludovic Courtès
2019-03-13Remove traces of "GuixSD"....* gnu/bootloader/extlinux.scm (extlinux-configuration-file): Remove mentions of "GuixSD". * gnu/bootloader/grub.scm (install-grub-efi): Likewise. * gnu/build/vm.scm (make-iso9660-image): Change default #:volume-id to "Guix_image". (initialize-hard-disk): Search for the "Guix_image" label. * gnu/ci.scm (system-test-jobs, tarball-jobs): Remove "GuixSD". * gnu/installer/newt/welcome.scm (run-welcome-page): Likewise. * gnu/packages/audio.scm (supercollider)[description]: Likewise. * gnu/packages/curl.scm (curl): Likewise. * gnu/packages/emacs.scm (emacs): Likewise. * gnu/packages/gnome.scm (network-manager): Likewise. * gnu/packages/julia.scm (julia): Likewise. * gnu/packages/linux.scm (alsa-plugins): Likewise. (powertop, wireless-regdb): Likewise. * gnu/packages/package-management.scm (guix): Likewise. * gnu/packages/polkit.scm (polkit): Likewise. * gnu/packages/tex.scm (texlive-bin): Likewise. * gnu/services/base.scm (file-systems->fstab): Likewise. * gnu/services/cups.scm (%cups-activation): Likewise. * gnu/services/mail.scm (%dovecot-activation): Likewise. * gnu/services/messaging.scm (prosody-configuration)[log]: Likewise. * gnu/system/examples/vm-image.tmpl (vm-image-motd): Likewise. * gnu/system/install.scm (installation-os)[file-systems]: Change root file system label to "Guix_image". * gnu/system/mapped-devices.scm (check-device-initrd-modules): Remove "GuixSD". * gnu/system/vm.scm (system-docker-image): Likewise. (system-disk-image)[root-label]: Change to "Guix_image". * gnu/tests/install.scm (run-install): Remove "GuixSD". * guix/modules.scm (guix-module-name?): Likewise. * nix/libstore/optimise-store.cc: Likewise. Ludovic Courtès
2018-12-16daemon: Use unbranded phrases in comments and messages....* nix/libstore/build.cc, nix/libstore/globals.cc, nix/libstore/gc.cc, nix/libstore/local-store.cc, nix/libstore/optimise-store.cc, nix/libstore/store-api.cc, nix/libutil/archive.cc, nix/nix-daemon/nix-daemon.cc: Replace "Nix store" by "store", and "Nix daemon" by "build daemon". Ludovic Courtès