Commit c93f9825 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

pc is cleaned by solver

parent 207aba03
......@@ -36,13 +36,11 @@ public:
fineSolution(Vector(solMatrixGraphs[l - pLevel])),
coarseSolution(Vector(solMatrixGraphs[l - pLevel - 1])) {
pc = GetPC("SuperLU");
solver = new Solver(pc, "GMRES");
solver = new Solver(GetPC("SuperLU"), "GMRES");
newton = new Newton(*solver);
}
virtual ~MonteCarloElliptic() {
delete pc;
delete solver;
delete newton;
}
......
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