add dune ILU0 for multiprocess simulations

This commit is contained in:
Tobias Meyer Andersen 2023-11-28 09:45:26 +01:00
parent 8b5ab973e2
commit 030720f855

View File

@ -180,12 +180,12 @@ struct StandardPreconditioners
F::addCreator("ILUn", [](const O& op, const P& prm, const std::function<V()>&, std::size_t, const C& comm) {
return createParILU(op, prm, comm, prm.get<int>("ilulevel", 0));
});
// F::addCreator("DuneILU", [](const O& op, const P& prm, const std::function<V()>&, std::size_t) {
// const double w = prm.get<double>("relaxation", 1.0);
// const int n = prm.get<int>("ilulevel", 0);
// const bool resort = prm.get<bool>("resort", false);
// return wrapBlockPreconditioner<Dune::SeqILU<M, V, V>>(op.getmat(), n, w, resort);
// });
F::addCreator("DuneILU", [](const O& op, const P& prm, const std::function<V()>&, std::size_t, const C& comm) {
const double w = prm.get<double>("relaxation", 1.0);
const int n = prm.get<int>("ilulevel", 0);
const bool resort = prm.get<bool>("resort", false);
return wrapBlockPreconditioner<DummyUpdatePreconditioner<Dune::SeqILU<M, V, V>>>(comm, op.getmat(), n, w, resort);
});
F::addCreator("DILU", [](const O& op, const P& prm, const std::function<V()>&, std::size_t, const C& comm) {
DUNE_UNUSED_PARAMETER(prm);
return wrapBlockPreconditioner<MultithreadDILU<M, V, V>>(comm, op.getmat());