From 1029fe84600b25529233bcdccdce7bbcc46aa474 Mon Sep 17 00:00:00 2001
From: Ansgar Burchardt <burchardt@igpm.rwth-aachen.de>
Date: Wed, 9 Jul 2014 13:02:34 +0200
Subject: [PATCH] Also initialize preconditioner_ in default constructor

preconditioner_ needs to be initialized in the default
constructor. Otherwise, when the default constructor and later
setProblem are used, its value is undefined.
---
 dune/solvers/iterationsteps/cgstep.hh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dune/solvers/iterationsteps/cgstep.hh b/dune/solvers/iterationsteps/cgstep.hh
index 12e9dbb7..f5bac9ae 100644
--- a/dune/solvers/iterationsteps/cgstep.hh
+++ b/dune/solvers/iterationsteps/cgstep.hh
@@ -13,6 +13,7 @@ namespace Dune {
         {
         public:
             CGStep()
+                : preconditioner_(nullptr)
             {}
 
             CGStep(const MatrixType& matrix,
-- 
GitLab