From f6f59452ca54e0b4463b1ab64d6948c432139cb1 Mon Sep 17 00:00:00 2001 From: Peter Gottschling <peter.gottschling@simunova.com> Date: Thu, 17 Sep 2009 14:55:47 +0000 Subject: [PATCH] slight change. --- AMDiS/src/UmfPackSolver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMDiS/src/UmfPackSolver.h b/AMDiS/src/UmfPackSolver.h index 8bb6ae05..ce280451 100644 --- a/AMDiS/src/UmfPackSolver.h +++ b/AMDiS/src/UmfPackSolver.h @@ -90,8 +90,8 @@ namespace AMDiS { // std::cout << "UmfPackSolver: A = \n" << A << "\n"; int code= (*solver)(x, b); - mtl::dense_vector<value_type> r= b - A * x; - std::cout << "UmfPackSolver: ||b-Ax|| = " << two_norm(r) << "\n"; + mtl::dense_vector<value_type> r(b); r-= A * x; residual= two_norm(r); + std::cout << "UmfPackSolver: ||b-Ax|| = " << residual << "\n"; return code; } -- GitLab