Skip to content

Commit

Permalink
minor doc and code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pratikvn committed Apr 26, 2024
1 parent fc23624 commit 915e227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/multigrid/uniform_coarsening.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ void UniformCoarsening<ValueType, IndexType>::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);
}
Expand Down
6 changes: 3 additions & 3 deletions include/ginkgo/core/multigrid/uniform_coarsening.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 915e227

Please sign in to comment.