diff --git a/dune/solvers/iterationsteps/blockgssteps.hh b/dune/solvers/iterationsteps/blockgssteps.hh index 7c7cec4084f725182f290ad0ea50fe3cf21fbdc9..9e7f769cd2cb309950212b3c4b18b0419a0f528d 100644 --- a/dune/solvers/iterationsteps/blockgssteps.hh +++ b/dune/solvers/iterationsteps/blockgssteps.hh @@ -99,7 +99,8 @@ static constexpr double defaultCgTol = 1e-15; template <class MBlock, class VBlock> VBlock cg(const MBlock& m, VBlock r, size_t maxIter = defaultCgMaxIter, double tol = defaultCgTol) { - VBlock x = 0; + VBlock x; + x = 0; VBlock p = r; auto q = r; auto rOldSquared = r * r;