<div dir="ltr"><div dir="ltr">On Sat, Nov 30, 2019 at 3:19 PM baikadi pranay <<a href="mailto:pranayreddy865@gmail.com">pranayreddy865@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello PETSc users,<div><br></div><div>I am currently trying to build a 1-D Schrodinger solver. I have built my hamiltonian matrix (of size 121 x 121) and i'm trying to find the eigenvalues. I have the following lines of code for the solver: </div><div><br></div><div><b style="background-color:rgb(243,243,243)">call EPSCreate(PETSC_COMM_WORLD,eps,ierr)</b></div><div><b style="background-color:rgb(243,243,243)">call EPSSetOperators(eps,ham,S,ierr)<br>call EPSSetProblemType(eps,EPS_GHEP,ierr)</b></div><div><b style="background-color:rgb(243,243,243)">call EPSSetFromOptions(eps,ierr)<br>call EPSSetDimensions(eps,10,PETSC_DEFAULT_INTEGER,PETSC_DEFAULT_INTEGER,ierr)<br>call EPSSolve(eps,ierr)<br>call EPSDestroy(eps,ierr)</b><br></div><div><br></div><div><font color="#000000">At the EPSSolve line, i get the following error: </font></div><div><font color="#000000"><br></font></div><div><b style="background-color:rgb(243,243,243)">[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>[0]PETSC ERROR: Floating point exception<br>[0]PETSC ERROR: Vec entry at local location 0 is not-a-number or infinite at end of function: Parameter number 3<br>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Release Version 3.11.1, Apr, 12, 2019</b></div></div></blockquote><div><br></div><div>You need to show the entire stack trace that is output here.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><font color="#000000">I am using the options </font><b style="background-color:rgb(243,243,243)">-st_pc_factor_shift_type NONZERO -st_pc_factor_shift_amount 1</b><span style="background-color:rgb(243,243,243)"> </span><span style="background-color:rgb(255,255,255)"> ( else I end up getting the "zero pivot in LU factorization" error ).<br><br>I outputted my matrix to matlab and confirmed that the null space is empty and the matrix is not singular. I am not sure why I'm getting this error. Could you provide me a hint as to how to solve this problem.</span></div><div><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)">Sincerely,</span></div><div><span style="background-color:rgb(255,255,255)">Pranay.</span></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>