Skip to content
Snippets Groups Projects
Commit 31cf494c authored by Elias Pipping's avatar Elias Pipping
Browse files

CGStep: Fix constructor with preconditioner

parent 5c9a638f
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ namespace Dune {
VectorType& x,
const VectorType& rhs,
Preconditioner<MatrixType, VectorType>& preconditioner)
: Base(x), p_(rhs.size()), r_(rhs), matrix_(matrix),
: Base(x), p_(rhs.size()), r_(rhs), matrix_(stackobject_to_shared_ptr(matrix)),
preconditioner_(&preconditioner)
{}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment