Commit ec259069 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

LanczosCore, ChebyshevSolver: another memory fix after recent changes

parent d5ebfd17
......@@ -240,7 +240,6 @@ public:
DenseMatrixType* ptr = lanczosVectors_.data();
if (!ptr)
err("LanczosSolver::lanczosVectors() called but no data stored\n");
lanczosVectors_.needsDelete(false);
return ptr->swap(V);
}
......
......@@ -274,7 +274,6 @@ public:
if (!ptr)
throw RuntimeError("LanczosCore::lanczosVectors() called but no data stored\n");
lanczosVectors_.needsDelete(false);
ptr->swap(V);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment