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

Explicitly check for nullptr.

parent bfeb2942
Branches
No related tags found
1 merge request!11Fix: Cope with omitted diagonal blocks in outer GS loop.
......@@ -57,7 +57,7 @@ void linearStep(const M& m, V& x, const V& b, const BitVector* ignore,
ignore_i = (*ignore)[i];
// Update iterate with correction
x[i] += localSolver(diag ? *diag : Block(0.0), std::move(ri), ignore_i);
x[i] += localSolver(diag != nullptr ? *diag : Block(0.0), std::move(ri), ignore_i);
};
if (direction != Direction::BACKWARD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment