X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/GMRES2stage.git/blobdiff_plain/877ef102aef5b45478a81fe60764c56a50cbf5f3..90a7d5a4672d8b4883fce5722939a29439b059d2:/code/ex45.c diff --git a/code/ex45.c b/code/ex45.c index a44a2d0..11fd5c2 100644 --- a/code/ex45.c +++ b/code/ex45.c @@ -408,14 +408,6 @@ int KrylovMinimizeLSQR(Mat A, Vec b, Vec x) { VecAYPX(d,1/rho,zero_short); //d=d/ rho; - if (normar/(norma*normr) <= tol) { // check for convergence in min{|b-A*x|} - break; - } - if (normr <= tolb) { // check for convergence in A*x=b - break; - } - - VecAXPY(x_lsqr,phi,d); // x_lsqr=x_lsqr+phi*d normr = abs(s) * normr; MatMultTranspose(AS, u, vt); //vt=A'*u;