Skip to content
Snippets Groups Projects
Commit 1029fe84 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

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.
parent f9ca4545
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ namespace Dune { ...@@ -13,6 +13,7 @@ namespace Dune {
{ {
public: public:
CGStep() CGStep()
: preconditioner_(nullptr)
{} {}
CGStep(const MatrixType& matrix, CGStep(const MatrixType& matrix,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment