Skip to content
Snippets Groups Projects
Commit c4730fbe authored by Timo Koch's avatar Timo Koch
Browse files

[fix] Correct forgotten linear solver calls

parent 078e24e0
No related branches found
No related tags found
1 merge request!1960[fix] Correct forgotten linear solver calls
......@@ -217,7 +217,7 @@ int main(int argc, char** argv) try
// solve linear system
solveTimer.start();
auto deltaSol = sol;
const bool converged = linearSolver->template solve<2>(assembler->jacobian(), deltaSol, assembler->residual());
const bool converged = linearSolver->solve(assembler->jacobian(), deltaSol, assembler->residual());
if (!converged) DUNE_THROW(Dune::MathError, "Linear solver did not converge!");
solveTimer.stop();
......
......@@ -112,7 +112,7 @@ void assembleSolveUpdate(Assembler& assembler, LinearSolver& linearSolver, Coupl
// solve linear system
solveTimer.start();
auto deltaSol = sol;
const bool converged = linearSolver->template solve<2>(assembler->jacobian(), deltaSol, assembler->residual());
const bool converged = linearSolver->solve(assembler->jacobian(), deltaSol, assembler->residual());
if (!converged) DUNE_THROW(Dune::MathError, "Linear solver did not converge!");
solveTimer.stop();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment