<div dir="ltr">Hi all,<br><br>I am solving a max/min eigenvalue problem, and call EPSGetIterationNumber() to get the iteration number for convergence. However, it always returns 1. This is a little confused, because I can see my subroutine of MATOP_MULT operation has been called 6 or 16 times with different configurations.<div><br></div>The ConvergedReason returns 2, so it looks like the eigenvalue is correct. <br>also, it shows<br> 1 EPS nconv=2 first unconverged value (error) 0.0158234 (2.15550644e-03)<br><br><div>what does it mean?</div><div><br></div><div>Thanks.</div><div><br></div><div>Xujun<br><br><br><br>/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><br>   Solve the eigensystem and get the solution<br><br>   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"EPS solve starts ...\n");<br><br>  ierr = EPSSolve(eps);CHKERRQ(ierr);<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"\n--->test: EPS solve results:\n");<br><br>  ierr = EPSGetEigenvalue(eps,0,&value,NULL); CHKERRQ(ierr);<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"          the eigenvalue: %f\n",value);<br><br>  ierr = EPSGetType(eps,&type);CHKERRQ(ierr);<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"          Solution method: %s\n",type);<br><br>  ierr = EPSGetIterationNumber(eps,&its);CHKERRQ(ierr);<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"          Number of iterations of the method: %D\n",its);<br><br>  ierr = EPSGetConvergedReason(eps,&reason);<br><br>  ierr = PetscPrintf(PETSC_COMM_WORLD,"          EPS converged reason : %D\n\n",reason);<br></div></div>