Skip to content
Snippets Groups Projects
Commit 33f01d08 authored by Max Kahnt's avatar Max Kahnt
Browse files

Cleanup: Doc and asserts.

parent 0825792a
Branches generalized-blockgsstep-rebased
No related tags found
No related merge requests found
......@@ -164,7 +164,8 @@ auto truncate(LinearSolver&& linearSolver) {
auto mTruncated = m;
auto bTruncated = b;
assert(b.size() == m.N() && m.N() == m.M());
assert(b.size() == m.N());
assert(m.N() == m.M());
size_t blockSize = b.size();
for (size_t j = 0; j < blockSize; ++j) {
if (not ignore[j])
......@@ -260,8 +261,7 @@ auto cg(size_t maxIter = LinearSolvers::defaultCgMaxIter,
/**
* \brief A Gauss--Seidel-type linear iteration step.
* \param localSolver The solver how to solve the linear block correction
* problems.
* \param localSolver The solver for the linear block correction problems.
*/
template <class Matrix, class Vector, class BitVector, class LocalSolver>
struct BlockGSStep : public LinearIterationStep<Matrix, Vector, BitVector> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment