When I want to solve a large-scale sparse problem with the multigrid Solver, how do I set up its components and parameters? The current setup needs to be iterated too many times #1852
Replies: 3 comments
-
Hi @cuihaoran21 , good to hear you would like to try multigrid solver. |
Beta Was this translation helpful? Give feedback.
-
Hi, If you want to use the multigrid solver as a stand-alone method: If you want to use it as a preconditionner to the GC method (this is a much more common practice): |
Beta Was this translation helpful? Give feedback.
-
Hi @cuihaoran21, I've converted your original issue into a discussion. Please feel free to update this if you have any further comments. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
using ir = gko::solver::Ir;
using bj = gko::preconditioner::Jacobi<double, int>;
using pgm = gko::multigrid::Pgm<double, int>;
using mg = gko::solver::Multigrid;
/* Create smoother factory*/
smoother_gen = gko::share(
ir::build()
.with_solver(bj::build().with_max_block_size(4u))
.with_relaxation_factor(static_cast(0.8))
.with_criteria(gko::stop::Iteration::build().with_max_iters(10u))
.on(exec));
Beta Was this translation helpful? Give feedback.
All reactions