Skip to content
Snippets Groups Projects
Commit f6f59452 authored by Peter Gottschling's avatar Peter Gottschling
Browse files

slight change.

parent e0597113
No related branches found
No related tags found
No related merge requests found
...@@ -90,8 +90,8 @@ namespace AMDiS { ...@@ -90,8 +90,8 @@ namespace AMDiS {
// std::cout << "UmfPackSolver: A = \n" << A << "\n"; // std::cout << "UmfPackSolver: A = \n" << A << "\n";
int code= (*solver)(x, b); int code= (*solver)(x, b);
mtl::dense_vector<value_type> r= b - A * x; mtl::dense_vector<value_type> r(b); r-= A * x; residual= two_norm(r);
std::cout << "UmfPackSolver: ||b-Ax|| = " << two_norm(r) << "\n"; std::cout << "UmfPackSolver: ||b-Ax|| = " << residual << "\n";
return code; return code;
} }
......
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