From 0079a178894712c20b30f3ebb414871060577bab Mon Sep 17 00:00:00 2001 From: Tobias Meyer Andersen Date: Mon, 15 Apr 2024 16:06:37 +0200 Subject: [PATCH] re-enable DuneILU for multiprocess --- .../linalg/PreconditionerFactory_impl.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opm/simulators/linalg/PreconditionerFactory_impl.hpp b/opm/simulators/linalg/PreconditionerFactory_impl.hpp index 6d82ae9e5..af743906d 100644 --- a/opm/simulators/linalg/PreconditionerFactory_impl.hpp +++ b/opm/simulators/linalg/PreconditionerFactory_impl.hpp @@ -173,13 +173,13 @@ struct StandardPreconditioners { F::addCreator("ILUn", [](const O& op, const P& prm, const std::function&, std::size_t, const C& comm) { return createParILU(op, prm, comm, prm.get("ilulevel", 0)); }); - // F::addCreator("DuneILU", [](const O& op, const P& prm, const std::function&, std::size_t, const C& comm) { - // const int n = prm.get("ilulevel", 0); - // const double w = prm.get("relaxation", 1.0); - // const bool resort = prm.get("resort", false); - // return wrapBlockPreconditioner, const M&>>( - // comm, op.getmat(), n, w, resort); - // }); + F::addCreator("DuneILU", [](const O& op, const P& prm, const std::function&, std::size_t, const C& comm) { + const int n = prm.get("ilulevel", 0); + const double w = prm.get("relaxation", 1.0); + const bool resort = prm.get("resort", false); + return wrapBlockPreconditioner, const M&, const int, const double, const bool>>( + comm, op.getmat(), n, w, resort); + }); F::addCreator("DILU", [](const O& op, const P& prm, const std::function&, std::size_t, const C& comm) { DUNE_UNUSED_PARAMETER(prm); return wrapBlockPreconditioner>(comm, op.getmat());