diff --git a/core/multigrid/uniform_coarsening.cpp b/core/multigrid/uniform_coarsening.cpp index 15fd9056895..c168501a8d7 100644 --- a/core/multigrid/uniform_coarsening.cpp +++ b/core/multigrid/uniform_coarsening.cpp @@ -93,8 +93,8 @@ void UniformCoarsening::generate() coarse_matrix->set_strategy(uniform_coarsening_op->get_strategy()); auto tmp = csr_type::create(exec, gko::dim<2>{fine_dim, coarse_dim}); tmp->set_strategy(uniform_coarsening_op->get_strategy()); - uniform_coarsening_op->apply(prolong_op.get(), tmp.get()); - restrict_op->apply(tmp.get(), coarse_matrix.get()); + uniform_coarsening_op->apply(prolong_op, tmp); + restrict_op->apply(tmp, coarse_matrix); this->set_multigrid_level(prolong_op, coarse_matrix, restrict_op); } diff --git a/include/ginkgo/core/multigrid/uniform_coarsening.hpp b/include/ginkgo/core/multigrid/uniform_coarsening.hpp index 1decd1e6053..174e769132b 100644 --- a/include/ginkgo/core/multigrid/uniform_coarsening.hpp +++ b/include/ginkgo/core/multigrid/uniform_coarsening.hpp @@ -22,9 +22,9 @@ namespace multigrid { /** - * UniformCoarsening is a very simple coarse grid generation algorithm. It - * selects the coarse matrix from the fine matrix by either constant jumps or - * with a user-specified index_set of rows. + * UniformCoarsening is a simple coarse grid generation algorithm. It + * selects the coarse matrix from the fine matrix by constant jumps that can be + * specified by the user. * * @tparam ValueType precision of matrix elements * @tparam IndexType precision of matrix indexes