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

pc is cleaned by solver

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