GMRES same iterations number

조회 수: 7 (최근 30일)
María José Castellano
María José Castellano 2018년 8월 28일
답변: Steven Lord 2018년 8월 28일
Hi, I'm solving three linear systems with GMRES for a numerical problem for Helmholtz equation using 3 different meshes but my problem is even if the matrix gets big and its conditioning gets lower the GMRES function gives me the same number of iterations. I use the command [q,flag,relres,iter,resvec] = gmres(Sq,uinc,10,[],100); Thanks for the answers

답변 (1개)

Steven Lord
Steven Lord 2018년 8월 28일
You told gmres to use a maximum of 100 outer iterations. Are all your calls to gmres reporting that they took 100 iterations (the first element of the output variable iter is equal to 100?) If so, check your convergence flag output (the variable named flag in your call.) My guess is it will be 1, indicating "gmres iterated maxit times but did not converge."

카테고리

Help CenterFile Exchange에서 Sparse Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by