<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<BR> Hello,<BR>
 <BR>
I am new to petsc and I am trying to calculate the eigenpairs.<BR>
<DIV id=SkyDrivePlaceholder></DIV>
My code is like the following:<BR>
 <BR><FONT size=2>
ierr = EPSCreate(PETSC_COMM_WORLD, &eps); CHKERRQ(ierr);<BR>
ierr = EPSSetOperators(eps, S, D); CHKERRQ(ierr);<BR>
ierr = EPSSetProblemType(eps, EPS_GHEP); CHKERRQ(ierr);<BR>
<BR>
<BR>
PetscInt nev = 300;</FONT><FONT color=#008000 size=2><FONT color=#008000 size=2><BR></FONT></FONT><FONT size=2>
ierr = EPSSetDimensions(eps, nev, PETSC_DECIDE, PETSC_DECIDE); CHKERRQ(ierr);<BR>
ierr = EPSSetWhichEigenpairs(eps, EPS_SMALLEST_MAGNITUDE);CHKERRQ(ierr);<BR>
ierr = EPSSolve(eps); CHKERRQ(ierr);<BR>
<BR>
ierr = EPSGetConverged(eps, &m_nconv);CHKERRQ(ierr);<BR>
 <BR>
What I don't understand is why m_conv is greater than nev.<BR>
when I try to print the m_conv out:<BR><FONT size=2>
PetscPrintf(PETSC_COMM_WORLD,</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>" Number of converged eigenpairs: %D\n\n"</FONT></FONT><FONT size=2>,m_nconv);</FONT><BR>
<FONT size=2></FONT> <BR>
<FONT size=2>it gives me 399 instead of 300 (that I want).</FONT><BR>
<FONT size=2></FONT> <BR>
<FONT size=2></FONT> <BR>
<FONT size=2>Thank you in advance,</FONT><BR>
<FONT size=2></FONT> <BR>
<FONT size=2>Eleni<BR></FONT></FONT>
 <BR>                                          </div></body>
</html>