<div>Looks good but it only gives 4 eigenvalues. How do I get the 50 smallest eigenvalues?<br></div><div><br></div><div>---John</div><br><div class="gmail_quote">On Tue, Aug 2, 2011 at 3:40 AM, Jose E. Roman <span dir="ltr"><<a href="mailto:jroman@dsic.upv.es">jroman@dsic.upv.es</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
El 02/08/2011, a las 09:24, John Chludzinski escribió:<br>
<div><div class="h5"><br>
> Jose,<br>
><br>
> I used:<br>
><br>
> MatCreateSeqAIJ(PETSC_COMM_SELF, n, n, 0, cnt, &A);<br>
> MatSetValue(A, i, j, *(a+i*SIZE+j), INSERT_VALUES);<br>
><br>
> to create the input matrices. Their sizes collapsed dramatically: from 192208072 to 239944. But again, using: ./ex7.exe -f1 k.dat -f2 m.dat -eps_gen_hermitian -eps_smallest_real > x.out 2>&1, I get:<br>
><br>
> Generalized eigenproblem stored in file.<br>
><br>
> Reading REAL matrices from binary files...<br>
> Number of iterations of the method: 500<br>
> Number of linear iterations of the method: 4009<br>
> Solution method: krylovschur<br>
><br>
> Number of requested eigenvalues: 1<br>
> Stopping condition: tol=1e-07, maxit=500<br>
> Number of converged approximate eigenpairs: 0<br>
><br>
> I'm really only interested in the least 50 eigenvalues.<br>
><br>
> Smallest 10 eigenvalues<br>
> -0.000019<br>
> -0.000004<br>
> -0.000000<br>
> 0.000005<br>
> 0.000012<br>
> 0.000016<br>
> 2.795284<br>
> 2.795307<br>
> 21.235339<br>
> 21.235340<br>
> 81.582017<br>
><br>
> Largest 10 eigenvalues<br>
> 176431487319.625000<br>
> 176431532012.467468<br>
> 176431562378.361359<br>
> 176435480628.136292<br>
> 176435488209.944031<br>
> 176435555689.747253<br>
> 176435563270.922424<br>
> 663312473823.916260<br>
> 663312473823.917969<br>
> 663312666285.928589<br>
> 663312666285.929810<br>
><br>
<br>
</div></div>You will never get convergence to the small eigenvalues in this way, since the largest ones are huge. Try something like:<br>
./ex7.exe -f1 k.dat -f2 m.dat -eps_gen_hermitian -st_type sinvert -eps_target 1.0<br>
<font color="#888888"><br>
Jose<br>
<br>
</font></blockquote></div><br>